Skip to content

Commit

Permalink
Run Zizmor with token
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Dec 14, 2024
1 parent 41bf7d4 commit e51f347
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ on:
permissions:
contents: read


jobs:
zizmor:
name: Zizmor latest via Cargo
name: Zizmor latest via PyPI
runs-on: ubuntu-latest
permissions:
security-events: write
Expand All @@ -21,12 +22,13 @@ 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: Run zizmor
run: zizmor --format sarif . > results.sarif
- uses: hynek/setup-cached-uv@v2

- name: Run zizmor 🌈
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 e51f347

Please sign in to comment.