Skip to content

Commit 49d87d4

Browse files
committed
Add pre-commit hooks to validate GitHub Actions content
Add hooks to validate GitHub Actions and GitHub Action workflows. These are validated using JSON Schemas.
1 parent da532a5 commit 49d87d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ repos:
4747
args:
4848
- --strict
4949

50+
# GitHub Actions hooks
51+
- repo: https://github.com/python-jsonschema/check-jsonschema
52+
rev: 0.14.2
53+
hooks:
54+
- id: check-github-actions
55+
- id: check-github-workflows
56+
5057
# pre-commit hooks
5158
- repo: https://github.com/pre-commit/pre-commit
5259
rev: v2.17.0

0 commit comments

Comments
 (0)