Skip to content

Commit 4f96b5f

Browse files
authored
Use zizmor from PyPI (#17512)
1 parent 4798b55 commit 4f96b5f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/zizmor.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
zizmor:
1212
# Advanced Security is not enabled on private repositories
1313
if: github.repository == 'pypi/warehouse'
14-
name: Zizmor latest via Cargo
14+
name: Zizmor
1515
runs-on: ubuntu-24.04
1616
permissions:
1717
security-events: write
@@ -23,12 +23,12 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
persist-credentials: false
26-
- name: Setup Rust
27-
uses: actions-rust-lang/setup-rust-toolchain@v1
28-
- name: Get zizmor
29-
run: cargo install zizmor
26+
- name: Setup Python
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version-file: '.python-version'
3030
- name: Run zizmor
31-
run: zizmor --format sarif . > results.sarif
31+
run: pipx run zizmor --format sarif . > results.sarif
3232
- name: Upload SARIF file
3333
uses: github/codeql-action/upload-sarif@v3
3434
with:

0 commit comments

Comments
 (0)