Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
zizmor:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
permissions:
contents: read
security-events: write
Expand All @@ -19,14 +19,6 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Update pip
run: scripts/update-pip.sh
- name: Install zizmor
run: pip install zizmor==1.30.1 # also update pyproject.toml

- name: Run zizmor
run: zizmor --format sarif .github/workflows/ > zizmor-results.sarif
- name: Upload SARIF file
# https://github.com/github/codeql-action/releases
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
sarif_file: zizmor-results.sarif
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0 Sync with pyproject.toml
1 change: 1 addition & 0 deletions news/+zizmor-github-action.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Switched to use the recommended GitHub Action :program:`zizmorcore/zizmor-action` from installing :program:`zizmor` via pip. @stevepiercy
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ dev = [
"towncrier>=25.8.0",
"tox",
"tox-uv",
"zizmor==1.30.1", # also update .github/workflows/zizmor.yml
Comment thread
stevepiercy marked this conversation as resolved.
Resolved
"zizmor==1.30.1", # Sync with .github/workflows/zizmor.yml
]

test = [
Expand Down
Loading