Skip to content

Add top-level permissions to CodeQL workflow#1307

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-workflow-permissions
Draft

Add top-level permissions to CodeQL workflow#1307
Copilot wants to merge 2 commits intomainfrom
copilot/fix-workflow-permissions

Conversation

Copy link

Copilot AI commented Mar 2, 2026

The codeQL.yml workflow lacked a top-level permissions block, defaulting to the repository's (potentially broad) token permissions.

  • Added permissions: {} at the workflow level, restricting the default GITHUB_TOKEN to no access
  • Existing job-level permissions on the analyze job are unchanged and continue to grant only actions: read, contents: read, and security-events: write

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

…ege security

Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing permissions in workflow Add top-level permissions to CodeQL workflow Mar 2, 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