Skip to content

ci: declare permissions on build-check and codeql-analysis#694

Open
arpitjain099 wants to merge 1 commit into
aws:mainfrom
arpitjain099:ci/add-permissions
Open

ci: declare permissions on build-check and codeql-analysis#694
arpitjain099 wants to merge 1 commit into
aws:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Two workflows currently inherit the repo default token scope:

  • build-check.yml — PR-time compile matrix (ubuntu/windows). contents: read covers checkout.
  • codeql-analysis.yml — runs github/codeql-action, which posts SARIF results back via the GitHub API. Standard CodeQL scopes: actions: read, contents: read, security-events: write.

build-check.yml: pure CI matrix compile - contents: read.

codeql-analysis.yml: github/codeql-action workflows need
  actions: read
  contents: read
  security-events: write  (SARIF upload)
which is the standard scope set for any CodeQL workflow.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099 arpitjain099 requested a review from a team as a code owner May 13, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant