Skip to content

Commit 0f736e4

Browse files
committed
github-actions: run zizmor in CI
Got the idea from libcurl: https://github.com/curl/curl/blob/master/.github/workflows/checksrc.yml#L157 Assisted-by: Claude:claude-opus-4-8[1m] Signed-off-by: Attila Szakacs-Bertok <attila.szakacs@axoflow.com>
1 parent f450aa4 commit 0f736e4

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: GitHub Actions workflow static analysis
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/**'
7+
pull_request:
8+
paths:
9+
- '.github/**'
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
zizmor:
20+
name: Check GitHub Actions workflows
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout source
24+
uses: actions/checkout@v6.0.2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Setup Python
29+
uses: actions/setup-python@v6.2.0
30+
with:
31+
python-version: "3.x"
32+
33+
- name: Install zizmor
34+
run: pip install zizmor
35+
36+
- name: Run zizmor
37+
run: zizmor .github/workflows/ --pedantic

0 commit comments

Comments
 (0)