Skip to content

Commit 46ccbb8

Browse files
committed
github: add zizmor check to CI matrix
This should help us catch GHA security issues earlier. Signed-off-by: Austin Seipp <[email protected]>
1 parent 7e3e133 commit 46ccbb8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,29 @@ jobs:
259259
# if the runner happens to provide a compatible version
260260
- name: Check that `mkdocs` can build the docs
261261
run: uv run --python-preference=only-managed -- mkdocs build --strict
262+
263+
check-zizmor:
264+
name: check (zizmor)
265+
runs-on: ubuntu-latest
266+
permissions:
267+
security-events: write
268+
contents: read
269+
steps:
270+
- name: Checkout repository
271+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
272+
with:
273+
persist-credentials: false
274+
275+
- name: Install the latest version of uv
276+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a
277+
278+
- name: Run zizmor
279+
run: uvx zizmor --format sarif . > results.sarif
280+
env:
281+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
282+
283+
- name: Upload SARIF file
284+
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0
285+
with:
286+
sarif_file: results.sarif
287+
category: zizmor

0 commit comments

Comments
 (0)