ci/workflow-lint
Actions workflows are linted
| Severity | info |
| Tiers | 1 |
| Stacks | any |
| Scope | root |
| Kind | outcome |
| Source | library v0.4.0 |
| Selected by | fleetlint-recommended@v0.4.0 |
Requirement
Repositories with GitHub, Gitea or Forgejo workflows run actionlint or zizmor over them in a hook, the task runner or CI.
Why
Workflow mistakes (bad expressions, unquoted inputs, risky triggers) only surface when the workflow runs; the linters find them on every change.
Applies when
workflows().exists(w, ci_kind(w) != "gitlab")Fix
Add the zizmor or actionlint pre-commit hook, or a lint step in the check workflow.
Agent instruction: Add the zizmor pre-commit hook (zizmorcore/zizmor-pre-commit) or actionlint to .pre-commit-config.yaml and fix what it reports in .github/workflows.
Sources
- https://github.com/rhysd/actionlint (spec)
- https://docs.zizmor.sh/ (spec)
- https://fleetlint.org/baseline/#security
Generated by fleetlint docs from catalog v0.4.0.