Skip to content

Commit 51b5921

Browse files
committed
[CI] Add Zizmor GitHub Actions security scanning
1 parent 54bb0e0 commit 51b5921

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/zizmor.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Zizmor GitHub Actions security analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
permissions: {}
12+
13+
jobs:
14+
zizmor:
15+
name: Run Zizmor
16+
runs-on: ubuntu-latest
17+
permissions:
18+
security-events: write # Required for zizmor-action to upload the SARIF report.
19+
contents: read # Needed to clone the repo (private repos).
20+
actions: read # Needed for upload-sarif to read workflow run info (private repos).
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24+
with:
25+
persist-credentials: false
26+
- name: Run Zizmor
27+
uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7

0 commit comments

Comments
 (0)