Skip to content

Commit df3ab55

Browse files
committed
Fix ghs_ regex: add dash to character class [A-Za-z0-9._-]
1 parent 615a713 commit df3ab55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/artifact-scanner.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ const GITHUB_TOKEN_PATTERNS: TokenPattern[] = [
5555
},
5656
{
5757
type: TokenType.ServerToServer,
58-
pattern: /ghs_[A-Za-z0-9._]{36,}/g,
58+
pattern: /ghs_[A-Za-z0-9._-]{36,}/g,
5959
},
6060
{
6161
type: TokenType.Refresh,
6262
pattern: /\bghr_[a-zA-Z0-9]{36}\b/g,
6363
},
6464
{
6565
type: TokenType.AppInstallationAccess,
66-
pattern: /ghs_[A-Za-z0-9._]{36,}/g,
66+
pattern: /ghs_[A-Za-z0-9._-]{36,}/g,
6767
},
6868
];
6969

0 commit comments

Comments
 (0)