Skip to content

Commit 34e0cda

Browse files
authored
Merge pull request #606 from storopoli/feat/zizmor
feat: add zizmor
2 parents 4b04db8 + c362808 commit 34e0cda

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ use nix
450450
- [topiary](https://github.com/tweag/topiary)
451451
- [treefmt](https://github.com/numtide/treefmt)
452452
- [trim-trailing-whitespace](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/trailing_whitespace_fixer.py)
453+
- [zizmor](https://github.com/zizmorcore/zizmor)
453454

454455
### Custom hooks
455456

modules/hooks.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4152,6 +4152,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
41524152
in
41534153
"${hooks.yamllint.package}/bin/yamllint ${cmdArgs}";
41544154
};
4155+
zizmor = {
4156+
name = "zizmor";
4157+
description = "Static analysis for GitHub Actions";
4158+
files = "^.github/workflows/";
4159+
types = [ "yaml" ];
4160+
package = tools.zizmor;
4161+
entry = "${hooks.zizmor.package}/bin/zizmor";
4162+
};
41554163
zprint =
41564164
{
41574165
name = "zprint";

nix/tools.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
, revive ? null
9696
, uv
9797
, vale
98+
, zizmor
9899
}:
99100

100101

@@ -178,6 +179,7 @@ in
178179
vale
179180
yamlfmt
180181
yamllint
182+
zizmor
181183
zprint
182184
;
183185
inherit (elmPackages) elm-format elm-review elm-test;

0 commit comments

Comments
 (0)