Skip to content

Commit ed9bc46

Browse files
committed
ci: add zizmor workflow + config (hash-pin policy)
1 parent b19cf6d commit ed9bc46

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Zizmor
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- '.github/workflows/**'
8+
- '.github/actions/**'
9+
- '.github/zizmor.yml'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/**'
13+
- '.github/actions/**'
14+
- '.github/zizmor.yml'
15+
16+
permissions: {}
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
zizmor:
24+
name: Zizmor
25+
runs-on: ubuntu-latest
26+
permissions:
27+
security-events: write # Upload SARIF to GitHub Security tab
28+
contents: read # Read workflow files for analysis
29+
actions: read # Read workflow run metadata
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
with:
34+
persist-credentials: false
35+
36+
- name: Run zizmor
37+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3

.github/zizmor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
'*': hash-pin

0 commit comments

Comments
 (0)