Skip to content

Commit ea4476e

Browse files
committed
Zizmor
1 parent c477bfd commit ea4476e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/lint-workflows.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Configuration from:
2+
# https://github.com/johnbillion/plugin-infrastructure/blob/571cba96190304963285181e2b928d941b9ec7c4/.github/workflows/reusable-workflow-lint.yml
3+
14
name: Lint GitHub Actions workflows
25
on:
36
pull_request:
@@ -60,3 +63,31 @@ jobs:
6063
sarif_file: results.sarif
6164
category: poutine
6265
wait-for-processing: false
66+
67+
zizmor:
68+
name: Zizmor
69+
runs-on: ubuntu-latest
70+
permissions:
71+
security-events: write # Required for codeql-action/upload-sarif to upload SARIF files.
72+
steps:
73+
- name: Checkout repository
74+
uses: actions/checkout@v6
75+
with:
76+
persist-credentials: false
77+
78+
- name: Install the latest version of uv
79+
uses: astral-sh/setup-uv@v7.3.0
80+
with:
81+
enable-cache: false
82+
83+
- name: Run zizmor
84+
run: uvx zizmor@1.20.0 --persona=auditor --format=sarif --strict-collection . > results.sarif
85+
env:
86+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
88+
- name: Upload SARIF file
89+
uses: github/codeql-action/upload-sarif@v4.31.9
90+
with:
91+
sarif_file: results.sarif
92+
category: zizmor
93+
wait-for-processing: false

0 commit comments

Comments
 (0)