Skip to content

Commit ddee077

Browse files
authored
fix(ci): allow CodeQL to upload scan results (#220)
CodeQL completes analysis on `main` but cannot upload its results, leaving CI red with `Resource not accessible by integration`. Grant the security job `security-events: write` for the upload and `contents: read` for checkout, so it no longer relies on repository-default token permissions. Validated with `actionlint .github/workflows/test.yml` and `git diff --check`. The previously failing push-to-main upload will need verification after merge. > Written by GPT-6 on Codex
1 parent f9af585 commit ddee077

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ jobs:
5252

5353
security:
5454
runs-on: ubuntu-latest
55+
56+
permissions:
57+
contents: read
58+
security-events: write
59+
5560
steps:
5661
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
5762

0 commit comments

Comments
 (0)