Skip to content

Commit df76e20

Browse files
authored
Add Zizmor workflow (#240)
1 parent 4026795 commit df76e20

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/zizmor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://github.com/woodruffw/zizmor
2+
name: GitHub Actions Security Analysis with Zizmor
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["*"]
9+
10+
jobs:
11+
zizmor:
12+
name: Zizmor
13+
runs-on: ubuntu-24.04
14+
permissions:
15+
security-events: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
19+
with:
20+
persist-credentials: false
21+
- name: Setup Python
22+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
23+
- name: Run zizmor
24+
run: pipx run zizmor --format sarif . > results.sarif
25+
- name: Upload SARIF file
26+
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v3.29.5
27+
with:
28+
# Path to SARIF file relative to the root of the repository
29+
sarif_file: results.sarif
30+
# Optional category for the results
31+
# Used to differentiate multiple results for one commit
32+
category: zizmor

0 commit comments

Comments
 (0)