Skip to content

Commit 9202a61

Browse files
committed
Run zizmor on GitHub Actions via prek
1 parent f98e837 commit 9202a61

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions: {}
6+
7+
env:
8+
FORCE_COLOR: 1
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
with:
17+
persist-credentials: false
18+
- uses: j178/prek-action@v1

.github/zizmor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Configuration for the zizmor static analysis tool, run via prek in CI
2+
# https://woodruffw.github.io/zizmor/configuration/
3+
rules:
4+
unpinned-uses:
5+
config:
6+
policies:
7+
"*": ref-pin

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/woodruffw/zizmor-pre-commit
3+
rev: v1.22.0
4+
hooks:
5+
- id: zizmor
6+
7+
- repo: meta
8+
hooks:
9+
- id: check-hooks-apply
10+
- id: check-useless-excludes

0 commit comments

Comments
 (0)