Skip to content

Commit d1b51f0

Browse files
committed
Update API permissions warning
1 parent 4264208 commit d1b51f0

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
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/autobuild-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-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/feature-flags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,10 +666,10 @@ class GitHubFeatureFlags {
666666
const httpError = util.asHTTPError(e);
667667
if (httpError?.status === 403) {
668668
this.logger.warning(
669-
"This run of the CodeQL Action does not have permission to access Code Scanning API endpoints. " +
669+
"This run of the CodeQL Action does not have permission to access the CodeQL Action API endpoints. " +
670670
"As a result, it will not be opted into any experimental features. " +
671671
"This could be because the Action is running on a pull request from a fork. If not, " +
672-
`please ensure the Action has the 'security-events: write' permission. Details: ${httpError.message}`,
672+
`please ensure the workflow has at least the 'security-events: read' permission. Details: ${httpError.message}`,
673673
);
674674
this.hasAccessedRemoteFeatureFlags = false;
675675
return {};

0 commit comments

Comments
 (0)