Skip to content

Keep workflow-level permissions: read-all in CodeQL workflow#43

Closed
Copilot wants to merge 1 commit intoimprovementsfrom
copilot/sub-pr-41-again
Closed

Keep workflow-level permissions: read-all in CodeQL workflow#43
Copilot wants to merge 1 commit intoimprovementsfrom
copilot/sub-pr-41-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

A previous review suggested removing permissions: read-all at the workflow level in codeql.yml as redundant, since the analyze job defines its own explicit permissions block. However, removing it breaks CodeQL — the job-level security-events: write requires the workflow-level permission scope to be present for the token to upload analysis results.

Decision

  • Retain permissions: read-all at the workflow level in .github/workflows/codeql.yml
  • The job-level permissions block (actions: read, contents: read, security-events: write) remains unchanged as the least-privilege definition for the job itself

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Address feedback on NuGet CI setup and dependencies update Keep workflow-level permissions: read-all in CodeQL workflow Feb 20, 2026
@dsanchezcr dsanchezcr closed this Feb 20, 2026
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.

2 participants