Skip to content

Commit 6091aea

Browse files
committed
Add zizmor linter
1 parent a491aba commit 6091aea

File tree

4 files changed

+82
-0
lines changed

4 files changed

+82
-0
lines changed

lefthook.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ pre-commit:
5656
- name: typos
5757
stage_fixed: true
5858
run: pixi {run} typos
59+
- name: zizmor
60+
glob: ".github/*.{yaml,yml}"
61+
run: pixi {run} zizmor {staged_files}
5962

6063
pre-push:
6164
jobs:

pixi.lock

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ ruff = ">=0.14.0,<0.15"
138138
shellcheck = ">=0.10.0,<0.11"
139139
taplo = ">=0.10.0,<0.11"
140140
typos = ">=1.38.1,<2"
141+
zizmor = ">=1.14.1,<2"
141142

142143
[feature.lint.tasks]
143144
actionlint = { cmd = "actionlint", env = { SHELLCHECK_OPTS = "-e SC2086" } }

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+
prefix-dev/*: any

0 commit comments

Comments
 (0)