From ed568341e02b23392e7bec448afc4d0873020df8 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Sun, 19 Jan 2025 19:46:32 -0500 Subject: [PATCH] install zizmor with uv --- .github/workflows/zizmor.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 0e96154..bc1fc24 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -4,32 +4,30 @@ on: push: branches: ["main"] pull_request: - branches: ["**"] + branches: ["*"] + +permissions: {} jobs: zizmor: name: zizmor latest via Cargo runs-on: ubuntu-latest permissions: - security-events: write - # required for workflows in private repositories contents: read - actions: read + security-events: write steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@b5f58b2abc5763ade55e4e9d0fe52cd1ff7979ca # v5.2.1 - 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 + uses: github/codeql-action/upload-sarif@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 with: sarif_file: results.sarif category: zizmor