Skip to content

Commit

Permalink
Add zizmor lint job
Browse files Browse the repository at this point in the history
To catch github actions mis-configurations

Signed-off-by: Samuel Giddins <[email protected]>
  • Loading branch information
segiddins committed Dec 20, 2024
1 parent 3350c8f commit 77b6b00
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,31 @@ jobs:
fail_on_unpinned: true
open_pr: false
repo_root: "."
zizmor:
name: zizmor
runs-on: ubuntu-latest
permissions:
security-events: write
# required for workflows in private repositories
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Install the latest version of uv
uses: astral-sh/setup-uv@180f8b44399608a850e1db031fa65c77746566d3 # v5.0.1

- 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@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
sarif_file: results.sarif
category: zizmor

0 comments on commit 77b6b00

Please sign in to comment.