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¶
- Rotate or revoke the credential at https://github.com/settings/applications.
- Check the provider's audit logs for use you don't recognise.
- 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]