Skip to content

Add top-level permissions to CodeQL workflow - #1307

Draft
Tomer Rosenthal (torosent) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-workflow-permissions
Draft

Add top-level permissions to CodeQL workflow#1307
Tomer Rosenthal (torosent) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-workflow-permissions

Conversation

CopilotAI commented Mar 2, 2026

Copy link
Copy Markdown

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>
CopilotAI changed the title [WIP] Fix missing permissions in workflowAdd top-level permissions to CodeQL workflowMar 2, 2026
Sign up for freeto 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

@torosent