Skip to content

Commit 2012262

Browse files
maresbricardoV94
authored andcommitted
Create zizmor workflow
1 parent d7a5f94 commit 2012262

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/zizmor.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# https://github.com/woodruffw/zizmor
2+
name: zizmor GHA analysis
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["**"]
9+
10+
jobs:
11+
zizmor:
12+
name: zizmor latest via PyPI
13+
runs-on: ubuntu-latest
14+
permissions:
15+
security-events: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
22+
- uses: hynek/setup-cached-uv@v2
23+
24+
- name: Run zizmor 🌈
25+
run: uvx zizmor --format sarif . > results.sarif
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Upload SARIF file
30+
uses: github/codeql-action/upload-sarif@v3
31+
with:
32+
# Path to SARIF file relative to the root of the repository
33+
sarif_file: results.sarif
34+
# Optional category for the results
35+
# Used to differentiate multiple results for one commit
36+
category: zizmor

0 commit comments

Comments
 (0)