| 1 | [[rules]] |
| 2 | id = "github-app-token" |
| 3 | regex = '''(?:ghu|ghs)_[0-9a-zA-Z]{36}''' |
| 4 | |
| 5 | [[rules]] |
| 6 | id = "github-oauth" |
| 7 | regex = '''gho_[0-9a-zA-Z]{36}''' |
| 8 | |
| 9 | [[rules]] |
| 10 | id = "github-pat" |
| 11 | regex = '''ghp_[0-9a-zA-Z]{36}''' |
| 12 | |
| 13 | |
| 14 | [[allowlists]] |
| 15 | regexes = ['''.*fake.*'''] |
| 16 | [[allowlists]] |
| 17 | targetRules = ["github-app-token", "github-pat"] |
| 18 | paths = [ |
| 19 | '''(?:^|/)@octokit/auth-token/README\.md$''', |
| 20 | ] |