mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 19:20:08 +08:00
feat: classify more HTTP errors as configuration errors in api-client
This commit is contained in:
@@ -245,6 +245,9 @@ export function wrapApiConfigurationError(e: unknown) {
|
||||
if (
|
||||
e.message.includes("API rate limit exceeded for installation") ||
|
||||
e.message.includes("commit not found") ||
|
||||
e.message.includes("Bad credentials") ||
|
||||
e.message.includes("Not Found") ||
|
||||
e.message.includes("Resource not accessible by integration") ||
|
||||
/ref .* not found in this repository/.test(e.message)
|
||||
) {
|
||||
return new ConfigurationError(e.message);
|
||||
|
||||
Reference in New Issue
Block a user