mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 09:59:43 +00:00
Add "Requires authentication" to wrapApiConfigurationError
This commit is contained in:
2
lib/setup-codeql-action.js
generated
2
lib/setup-codeql-action.js
generated
@@ -102021,7 +102021,7 @@ function wrapApiConfigurationError(e) {
|
||||
].some((pattern) => pattern.test(httpError.message))) {
|
||||
return new ConfigurationError(httpError.message);
|
||||
}
|
||||
if (httpError.message.includes("Bad credentials") || httpError.message.includes("Not Found")) {
|
||||
if (httpError.message.includes("Bad credentials") || httpError.message.includes("Not Found") || httpError.message.includes("Requires authentication")) {
|
||||
return new ConfigurationError(
|
||||
"Please check that your token is valid and has the required permissions: contents: read, security-events: write"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user