Skip to content

Commit 25d934e

Browse files
add zizmor 🌈 workflow
1 parent 5997d9b commit 25d934e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

β€Ž.github/workflows/zizmor.ymlβ€Ž

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: zizmor 🌈
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
zizmor:
11+
name: zizmor latest via PyPI
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
contents: read # only needed for private repos
16+
actions: read # only needed for private repos
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v6
24+
with:
25+
enable-cache: true
26+
27+
- name: Run zizmor 🌈
28+
run: uvx zizmor --format=sarif . > results.sarif
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Upload SARIF file
33+
uses: github/codeql-action/upload-sarif@v3
34+
with:
35+
sarif_file: results.sarif
36+
category: zizmor

0 commit comments

Comments
Β (0)