Skip to content

Commit 6d4cd5d

Browse files
committed
Add "Requires authentication" to wrapApiConfigurationError
1 parent 8aac4e4 commit 6d4cd5d

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

lib/analyze-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api-client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ export function wrapApiConfigurationError(e: unknown) {
306306
}
307307
if (
308308
httpError.message.includes("Bad credentials") ||
309-
httpError.message.includes("Not Found")
309+
httpError.message.includes("Not Found") ||
310+
httpError.message.includes("Requires authentication")
310311
) {
311312
return new ConfigurationError(
312313
"Please check that your token is valid and has the required permissions: contents: read, security-events: write",

0 commit comments

Comments
 (0)