Skip to content

Commit d9331e2

Browse files
committed
Setup Zizmor analysis for Github Actions
GitHub Actions come with a non-trivial number of settings that are not secure by default. Zizmor can scan these and report them as Code scanning finding in GitHub. This enables us to solve these issues in a structured manner.
1 parent 98676f8 commit d9331e2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: GitHub Actions Security Analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/**'
8+
paths:
9+
- '.github/**'
10+
pull_request:
11+
paths:
12+
- '.github/**'
13+
14+
permissions: {}
15+
16+
jobs:
17+
zizmor:
18+
name: Run Zizmor
19+
runs-on: ubuntu-latest
20+
permissions:
21+
security-events: write
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run Zizmor
29+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
30+

0 commit comments

Comments
 (0)