mirror of
https://github.com/github/codeql-action.git
synced 2026-05-21 13:04:08 +00:00
Use .match in isAuthToken and add repeated call to test
This commit is contained in:
@@ -88,7 +88,7 @@ export function isAuthToken(
|
||||
patterns: TokenPattern[] = GITHUB_TOKEN_PATTERNS,
|
||||
) {
|
||||
for (const { type, pattern } of patterns) {
|
||||
if (pattern.test(value)) {
|
||||
if (value.match(pattern)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user