Skip to content

Commit 927d798

Browse files
authored
Merge pull request #592 from squat/introduce-action-validator
feat: add action-validator hook
2 parents 029c497 + 8e35904 commit 927d798

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ use nix
473473
### Various other hooks
474474

475475
- [actionlint](https://github.com/rhysd/actionlint)
476+
- [action-validator](https://github.com/mpalmer/action-validator)
476477
- [check-added-large-files](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_added_large_files.py)
477478
- [check-case-conflicts](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_case_conflict.py)
478479
- [check-executables-have-shebangs](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_executables_have_shebangs.py)

modules/hooks.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,6 +2141,15 @@ in
21412141
package = tools.actionlint;
21422142
entry = "${hooks.actionlint.package}/bin/actionlint";
21432143
};
2144+
action-validator =
2145+
{
2146+
name = "action-validator";
2147+
description = "Tool to validate GitHub Action and Workflow YAML files";
2148+
files = "^.github/(actions|workflows)/";
2149+
types = [ "yaml" ];
2150+
package = tools.action-validator;
2151+
entry = "${hooks.action-validator.package}/bin/action-validator";
2152+
};
21442153
alejandra =
21452154
{
21462155
name = "alejandra";

nix/tools.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
, lib
33

44
, actionlint
5+
, action-validator
56
, alejandra
67
, ansible-lint
78
, biome
@@ -110,6 +111,7 @@ in
110111
clang-tools = llvmPackages_latest.clang-tools;
111112
inherit
112113
actionlint
114+
action-validator
113115
alejandra
114116
ansible-lint
115117
beautysh

0 commit comments

Comments
 (0)