Skip to content

Commit eda7d96

Browse files
committed
Add zizmor workflow
Static analysis for GitHub Actions
1 parent 8fea9e7 commit eda7d96

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/zizmor.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: GitHub Actions Security Analysis with zizmor 🌈
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
paths:
9+
- '.github/workflows/*'
10+
11+
jobs:
12+
zizmor:
13+
name: zizmor latest via PyPI
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
# required for workflows in private repositories
18+
contents: read
19+
actions: read
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
persist-credentials: false
25+
26+
- name: Install the latest version of uv
27+
uses: astral-sh/setup-uv@v5
28+
29+
- name: Run zizmor 🌈
30+
run: uvx zizmor --format json . > results.json
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Upload zizmor results
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: results.json
38+
path: results.json
39+
retention-days: 1

0 commit comments

Comments
 (0)