From ddf89bd404bbefdcc77ac9c4fe011732ac4b8c1d Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 25 Oct 2025 19:12:22 +1000 Subject: [PATCH] pre-commit: add `actionlint` for GitHub Actions workflow files Another check or test we can have that lints workflow files. Tested with `pre-commit run --all-files` currently passing Static checker for GitHub Actions workflow files: https://github.com/rhysd/actionlint https://github.com/rhysd/actionlint/blob/v1.7.8/docs/usage.md#pre-commit Try the online version: https://rhysd.github.io/actionlint/ --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79dcf5e826..5616a2d085 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,6 +57,10 @@ repos: - id: gitleaks name: run gitleaks description: check for secrets with gitleaks + - repo: https://github.com/rhysd/actionlint + rev: v1.7.8 + hooks: + - id: actionlint - repo: https://github.com/oxipng/oxipng rev: v9.1.5 hooks: