mirror of
https://github.com/github/codeql-action.git
synced 2026-04-05 11:12:16 +00:00
fix: fix issue where wrapApiConfigurationError would fail to regex match a string due to boundary constraints on the regex
This commit is contained in:
@@ -245,7 +245,7 @@ export function wrapApiConfigurationError(e: unknown) {
|
||||
if (
|
||||
e.message.includes("API rate limit exceeded for installation") ||
|
||||
e.message.includes("commit not found") ||
|
||||
/^ref .* not found in this repository$/.test(e.message)
|
||||
/ref .* not found in this repository/.test(e.message)
|
||||
) {
|
||||
return new ConfigurationError(e.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user