Skip to content

Commit 6b3895e

Browse files
authored
fix(ci): add security-events permission and action.yml to zizmor paths (#218)
Two fixes for the Zizmor workflow: 1. **Add `security-events: write` permission** - The zizmor-action uploads SARIF results via `codeql-action/upload-sarif`, which requires this permission. Without it, every run fails with "Resource not accessible by integration" even when zizmor finds zero issues. 2. **Add `action.yml` to path triggers** - The repo's composite action (`action.yml`) was only scanned on `workflow_dispatch`, not on push/PR changes.
2 parents 8836370 + ef3dde9 commit 6b3895e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ on:
77
- ".github/workflows/**"
88
- ".github/actions/**"
99
- ".github/zizmor.yml"
10+
- "action.yml"
1011
push:
1112
branches: [main]
1213
paths:
1314
- ".github/workflows/**"
1415
- ".github/actions/**"
1516
- ".github/zizmor.yml"
17+
- "action.yml"
1618
workflow_dispatch:
1719

1820
permissions:
1921
contents: read
22+
security-events: write
2023

2124
jobs:
2225
zizmor:

0 commit comments

Comments
 (0)