Add pre-commit hook actionlint

Validate GitHub Actions with pre-commit.

Remove the Super-Linter GitHub Actions check.

It is more useful to run "actionlint" with pre-commit
since the hooks run on our local machines on git commit.

We also run pre-commit on GitHub.

Whereas the Super-Linter tests only run on GitHub.

https://github.com/rhysd/actionlint/blob/main/docs/usage.md#pre-commit
This commit is contained in:
John Bampton
2024-09-22 08:34:41 +10:00
parent bd668e4c9d
commit 6d749e92ed
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -26,7 +26,6 @@ jobs:
# VALIDATE_BASH_EXEC: true
VALIDATE_DOCKERFILE_HADOLINT: true
# VALIDATE_EDITORCONFIG: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GITLEAKS: true
# VALIDATE_SHELL_SHFMT: true
DEFAULT_BRANCH: master
+4
View File
@@ -41,6 +41,10 @@ repos:
- id: remove-tabs
args: [--whitespaces-count, "2"]
exclude: Makefile$
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks: