Skip to content

Commit 940fc1c

Browse files
committed
add workflow for zizmor scan
1 parent 46183dd commit 940fc1c

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: GitHub Actions Security Analysis with zizmor 🌈
2+
3+
on:
4+
push:
5+
branches: [3.0, 3.0-dev]
6+
pull_request:
7+
branches: [3.0, 3.0-dev]
8+
9+
permissions: {}
10+
11+
jobs:
12+
zizmor:
13+
name: zizmor latest via PyPI
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
env:
18+
ZIZMOR_VERSION: 1.5.2
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
22+
with:
23+
persist-credentials: false
24+
25+
- name: Install the latest version of uv
26+
uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04 # v6.0.0
27+
28+
- name: Run zizmor 🌈
29+
run: uvx zizmor=="$ZIZMOR_VERSION" "$GITHUB_WORKSPACE" --format sarif > zizmor_scan_report.sarif
30+
env:
31+
GH_TOKEN: ${{ secrets.SYS_ORCH_GITHUB }}
32+
33+
- name: Upload SARIF file
34+
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
35+
with:
36+
sarif_file: zizmor_scan_report.sarif

0 commit comments

Comments
 (0)