Skip to content

LS-GH-003: GitHub App Token

Severity HIGH
Blast radius Source code and CI/CD compromise
Rotate at https://github.com/settings/installations
Validation github_checksum_ok (matches that fail are dropped)
--verify GET https://api.github.com/user

If this leaks

Grants the GitHub App's installed permissions on every repository it has been installed into, often including code, issues, and CI/CD secrets.

What to do

  1. Rotate or revoke the credential at https://github.com/settings/installations.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

\b(?:ghu|ghs)_[0-9a-zA-Z]{36}\b

Suppress

On one line: # leakscan:ignore LS-GH-003. For the whole project:

disable_rules: [LS-GH-003]