Skip to content

LS-GH-002: GitHub OAuth Token

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

If this leaks

Acts on behalf of the authorizing user with whatever scopes were granted during the OAuth flow, including private repo access.

What to do

  1. Rotate or revoke the credential at https://github.com/settings/applications.
  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

\bgho_[0-9a-zA-Z]{36}\b

Suppress

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

disable_rules: [LS-GH-002]