Skip to content

Commit f900f1d

Browse files
committed
ci: Grant zizmor privileges to upload CodeQL files
This is required for zizmor to be able to upload the SARIF files used for CodeQL to GitHub. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent 6155cef commit f900f1d

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

β€Ž.github/workflows/lint_and_docs.ymlβ€Ž

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,20 @@ jobs:
2727
- name: Lint sources
2828
run: |
2929
make lint PYTHON=python3
30-
- name: Run zizmor 🌈
31-
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
3230
- name: Build docs
3331
run: |
3432
towncrier build --version 99.99 --name pystack --keep
3533
make docs
34+
35+
zizmor:
36+
name: Run zizmor 🌈
37+
runs-on: ubuntu-latest
38+
permissions:
39+
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
43+
with:
44+
persist-credentials: false
45+
- name: Run zizmor 🌈
46+
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6

0 commit comments

Comments
Β (0)