fix: grant security-events write permission to the CodeQL workflow - #808
Merged
Conversation
wolfy-j
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CodeQL runs on master (push and scheduled) have been failing since June 12 at the final SARIF upload step with
Resource not accessible by integration, for example https://github.com/temporalio/roadrunner-temporal/actions/runs/32476971204. The default workflow token became read-only around that date, and the workflow has nopermissionsblock, so the upload to code scanning lackssecurity-events: write. Pull request runs still pass because code scanning accepts PR uploads on public repositories with a read-only token, which is why only push and scheduled runs are affected.This grants the analyze job
contents: readandsecurity-events: write, restoring the upload for push and scheduled runs while keeping the restrictive default for everything else.