Skip to content

Commit 40a88bf

Browse files
committed
ci: add zizmor
1 parent 369e4ab commit 40a88bf

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/zizmor.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Zizmor
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize]
7+
paths:
8+
- ".github/workflows/**"
9+
push:
10+
branches:
11+
- main
12+
- "renovate/**"
13+
paths:
14+
- ".github/workflows/**"
15+
16+
jobs:
17+
zizmor:
18+
name: zizmor
19+
runs-on: ubuntu-latest
20+
permissions:
21+
security-events: write
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25+
with:
26+
persist-credentials: false
27+
28+
- uses: taiki-e/install-action@8c39981484df4e7ba41af8e8e078ac546d5e1b11 # v2.46.8
29+
with:
30+
tool: zizmor
31+
32+
- name: Run zizmor
33+
run: zizmor --format sarif . > results.sarif
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Upload SARIF file
38+
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3
39+
with:
40+
sarif_file: results.sarif
41+
category: zizmor

0 commit comments

Comments
 (0)