Skip to content

Commit b4948a9

Browse files
hagouldCopilot
andauthored
Fix ghs_ token regex for new stateless format (#1840)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3d6b8ed commit b4948a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/secrets-scanner/scan-secrets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ PATTERNS=(
3030
# GitHub tokens
3131
"GITHUB_PAT|critical|ghp_[0-9A-Za-z]{36}"
3232
"GITHUB_OAUTH|critical|gho_[0-9A-Za-z]{36}"
33-
"GITHUB_APP_TOKEN|critical|ghs_[0-9A-Za-z]{36}"
33+
"GITHUB_APP_TOKEN|critical|ghs_[0-9A-Za-z._-]{36,}"
3434
"GITHUB_REFRESH_TOKEN|critical|ghr_[0-9A-Za-z]{36}"
3535
"GITHUB_FINE_GRAINED_PAT|critical|github_pat_[0-9A-Za-z_]{82}"
3636

0 commit comments

Comments
 (0)