- kind: regex
pattern: '\b((?:ghp|gho|ghu|ghs|ghr|github_pat)_[a-zA-Z0-9_]{36,255})\b'
category: auth_token
label: github_token
- kind: regex
pattern: '(?i)(?:github[_-]?(?:token|secret|key|api|pat)|gh[_-]?(?:token|secret|key|api|pat)|ghtoken|ghsecret)[\s:="'']+\b([0-9a-f]{40})\b'
category: auth_token
label: github_token_legacy
- kind: allow
values:
- "github"
- "github.com"
- "github-actions"
- "github-actions[bot]"
- "github_actions"
- "actions/checkout"
- "actions/setup-node"
- "actions/upload-artifact"
- "actions/download-artifact"
- "GITHUB_ACTOR"
- "GITHUB_REPOSITORY"
- "GITHUB_EVENT_NAME"
- "GITHUB_REF"
- "GITHUB_SHA"
- "GITHUB_WORKFLOW"
- "GITHUB_RUN_ID"
- "GITHUB_RUN_NUMBER"
- "github.event_name"
- "github.ref"
- "github.sha"
- "github.actor"
- "github.repository"
- "true"
- "false"
- "yes"
- "no"
- "null"
- "none"
- "nil"
- "0"
- "1"
- "localhost"
- "127.0.0.1"
- "0.0.0.0"
- "::1"
- "changeme"
- "example"
- "sample"
- "placeholder"
- "${*}"
- "{{*}}"
- "${{*}}"
- "example.com"
- "example.org"