Skip to content

Commit 608c6ba

Browse files
codebydivineclaude
andcommitted
fix: Add required permissions for security workflow SARIF upload
The security job was failing with "Resource not accessible by integration" because it lacked the necessary permissions to upload SARIF results to GitHub's Security tab. Changes: - Add security-events: write permission to security job - Add contents: read permission (required for checkout action) This allows the github/codeql-action/upload-sarif@v3 action to successfully upload Trivy scan results to the GitHub Security dashboard. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent b057723 commit 608c6ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ jobs:
9797

9898
security:
9999
runs-on: ubuntu-latest
100+
permissions:
101+
security-events: write
102+
contents: read
100103
steps:
101104
- uses: actions/checkout@v4
102105

0 commit comments

Comments
 (0)