Skip to content

Commit d7522e2

Browse files
committed
fix: add security-events write permission for SARIF upload
The CodeQL/Trivy SARIF upload requires security-events: write permission to upload scan results to GitHub Security tab.
1 parent 5dded74 commit d7522e2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
# Run weekly on Mondays at 00:00 UTC
1010
- cron: "0 0 * * 1"
1111

12+
permissions:
13+
contents: read
14+
security-events: write
15+
1216
env:
1317
CARGO_TERM_COLOR: always
1418

0 commit comments

Comments
 (0)