Skip to content

Commit b53799f

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/artifact-scanner.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test("isAuthToken", (t) => {
6060
isAuthToken(NEW_FORMAT_GHS_TOKEN, [
6161
{
6262
type: TokenType.AppInstallationAccess,
63-
pattern: /ghs_[A-Za-z0-9._]{36,}/g,
63+
pattern: /ghs_[A-Za-z0-9._-]{36,}/g,
6464
},
6565
]),
6666
TokenType.AppInstallationAccess,

0 commit comments

Comments
 (0)