Skip to content

feat: add zizmor #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ use nix
- [topiary](https://github.com/tweag/topiary)
- [treefmt](https://github.com/numtide/treefmt)
- [trim-trailing-whitespace](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/trailing_whitespace_fixer.py)
- [zizmor](https://github.com/zizmorcore/zizmor)

### Custom hooks

Expand Down
8 changes: 8 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4158,6 +4158,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
in
"${hooks.yamllint.package}/bin/yamllint ${cmdArgs}";
};
zizmor = {
name = "zizmor";
description = "Static analysis for GitHub Actions";
files = "^.github/workflows/";
types = [ "yaml" ];
package = tools.zizmor;
entry = "${hooks.zizmor.package}/bin/zizmor";
};
zprint =
{
name = "zprint";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
, revive ? null
, uv
, vale
, zizmor
}:


Expand Down Expand Up @@ -177,6 +178,7 @@ in
vale
yamlfmt
yamllint
zizmor
zprint
;
inherit (elmPackages) elm-format elm-review elm-test;
Expand Down