Add actionlint pre-commit hook for workflow validation
All checks were successful
Test CI / test (pull_request) Successful in 0s

- Fix workflow to use github.* context vars (Forgejo schema validator
  only recognizes GitHub Actions syntax, not gitea.* aliases)
- Pass untrusted inputs through env vars (security best practice)
- Add actionlint to Brewfile and pre-commit config

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-23 17:52:46 -08:00
commit 9dedea1400
3 changed files with 17 additions and 5 deletions

View file

@ -80,3 +80,10 @@ repos:
- id: prettier
types_or: [json]
args: ['--tab-width', '2']
# GitHub/Forgejo Actions workflow linting
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint-system
files: ^\.forgejo/workflows/