Skip to content

Commit ad6c47e

Browse files
authored
feat: add org-wide zizmor audit on GitHub Actions workflows (#47)
1 parent 72f6adf commit ad6c47e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: zizmor Static Analysis
2+
3+
on:
4+
pull_request:
5+
6+
permissions: {}
7+
8+
jobs:
9+
zizmor:
10+
name: zizmor Static Analysis
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
with:
18+
persist-credentials: false
19+
- name: Dump zizmor config
20+
run: |
21+
# TODO(dsanders11): Long term we should enable this but it requires manual migration
22+
echo -e "rules:\n secrets-outside-env:\n disable: true" > zizmor.yml
23+
- name: Run zizmor
24+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
25+
with:
26+
advanced-security: false
27+
config: zizmor.yml
28+
fail-on-no-inputs: false

0 commit comments

Comments
 (0)