Skip to content

Commit 4fc6d3c

Browse files
committed
ci: fix security-events permission and upgrade codeql-action to v4
Add missing security-events: write permission to job-level permissions block (which was shadowing the workflow-level setting), and update codeql-action/upload-sarif from v3 to v4 ahead of v3 deprecation.
1 parent c6108fa commit 4fc6d3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/maven-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
timeout-minutes: 30
2828
permissions:
2929
pull-requests: write
30+
security-events: write
3031
steps:
3132
- name: 'Checkout code'
3233
uses: actions/checkout@v4
@@ -76,7 +77,7 @@ jobs:
7677

7778
- name: Upload Trivy scan results to GitHub Security tab
7879
if: github.event_name == 'push'
79-
uses: github/codeql-action/upload-sarif@v3
80+
uses: github/codeql-action/upload-sarif@v4
8081
with:
8182
sarif_file: 'trivy-results.sarif'
8283

0 commit comments

Comments
 (0)