Datatypes

GitHub token

ID github_token

DatatypeNot PIIDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Token issued by GitHub, such as a personal access token. It starts with a prefix that names the token type (ghp_, gho_, ghu_, ghs_ or ghr_) followed by 36 letters and digits.

Categories
Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Microsoft Purview
GitHub personal access token, All Credential Types, All credentials
Quality
75/100 · missing: examples, negative example, translation
Metacrafter rules
no detection rule yet
Supported by tools
detect-secrets, Gitleaks, Microsoft Purview Data Loss Prevention, Nightfall AI, Semgrep, TruffleHog

Regular expression

^gh[pousr]_[A-Za-z0-9]{36}$

Python re syntax.

Child datatypes

IDNameCategoriesCountriesDescription
github_fine_grained_pat GitHub fine-grained personal access token draft secrets global Fine-grained personal access token of GitHub, limited to selected repositories and permissions: github_pat_ followed by 82 letters,...

Sources

Use this record