Skip to content

Commit e51f347

Browse files
committed
Run Zizmor with token
1 parent 41bf7d4 commit e51f347

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/zizmor.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ on:
1010
permissions:
1111
contents: read
1212

13+
1314
jobs:
1415
zizmor:
15-
name: Zizmor latest via Cargo
16+
name: Zizmor latest via PyPI
1617
runs-on: ubuntu-latest
1718
permissions:
1819
security-events: write
@@ -21,12 +22,13 @@ jobs:
2122
uses: actions/checkout@v4
2223
with:
2324
persist-credentials: false
24-
- name: Setup Rust
25-
uses: actions-rust-lang/setup-rust-toolchain@v1
26-
- name: Get zizmor
27-
run: cargo install zizmor
28-
- name: Run zizmor
29-
run: zizmor --format sarif . > results.sarif
25+
- uses: hynek/setup-cached-uv@v2
26+
27+
- name: Run zizmor 🌈
28+
run: uvx zizmor --format sarif . > results.sarif
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
3032
- name: Upload SARIF file
3133
uses: github/codeql-action/upload-sarif@v3
3234
with:

0 commit comments

Comments
 (0)