Skip to content

Commit ef3dde9

Browse files
committed
fix(ci): add security-events permission and action.yml to zizmor paths
The zizmor-action uploads SARIF results via codeql-action/upload-sarif, which requires security-events: write. Without it, every run fails with "Resource not accessible by integration" even when zizmor itself finds zero issues. Also add action.yml to the path trigger so the composite action is scanned on changes (it was previously only scanned on workflow_dispatch).
1 parent 8836370 commit ef3dde9

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)