Skip to content

Commit

Permalink
ci: zizmor: use uvx (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored Dec 9, 2024
1 parent ede8610 commit 40d3787
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
zizmor:
name: zizmor latest via Cargo
name: zizmor latest via PyPI
runs-on: ubuntu-latest
permissions:
security-events: write
Expand All @@ -20,14 +20,15 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Get zizmor
run: cargo install zizmor

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4

- name: Run zizmor 🌈
run: zizmor --format sarif . > results.sarif
run: uvx zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down

0 comments on commit 40d3787

Please sign in to comment.