actionlint
$ actionlint Community Low RiskFast single-binary Go static analyzer for .github/workflows/*.yml files, validating YAML syntax, ${{ }} expressions, runner labels, matrix combinations, and embedded run: shell/Python scripts. Supports JSON output via Go templates (-format '{{json .}}').
brew install actionlint Pure local static checker on .github/workflows/ YAML files; runs in milliseconds via CLI.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -format '{{json .}}' JSON serialization, -no-color, stdin input (-), and clear non-zero exit codes in non-TTY execution.
-format '{{json .}}'outputs structured JSON error arrays- Supports
-no-colorand-ignoreregex filtering
Strictly read-only static analyzer; never writes files or makes network requests.
- Zero file mutations and zero external network calls
Single static Go binary across macOS, Linux, and Windows via Homebrew, go install, and GitHub Releases.
- Static Go binary with optional
shellcheck/pyflakesintegration
Catches subtle GitHub Actions expression typos, invalid matrix contexts, and shell quoting bugs locally before pushing.
- Type-checks
${{ ... }}expressions and workflow schemas offline
Widely adopted community Go project (rhysd/actionlint) under MIT license.
- Established MIT-licensed repository
Detailed docs/usage.md, checks.md, and online playground.
- Comprehensive markdown docs in repository
Security, Auth & Guardrails
Purely local static analysis; no credentials stored or required.
MIT open-source Go binary; completely free.
# actionlint Agent Rules
- Always run `actionlint -format '{{json .}}'` after creating or editing `.github/workflows/*.yml`.
- Note that `actionlint` invokes `shellcheck` and `pyflakes` if installed on `PATH` for deeper `run:` script checks. Agent-Ready Command Recipes
Safe Read-Only Queries
actionlint -format '{{json .}}' -no-color Checks every .github/workflows/*.yml file and outputs structured JSON diagnostics with file, line, column, and rule kind.
actionlint -format '{{json .}}' .github/workflows/ci.yml Validates a single modified workflow file cleanly without touching disk.
Strengths for Agents
- + Strictly read-only offline validator for GitHub Actions YAML, expressions, and embedded shell scripts.
- +
-format '{{json .}}'produces clean structured JSON diagnostics.
Caveats & Pitfalls
- ! JSON output requires passing the Go template
-format '{{json .}}'rather than a simple--jsonflag. - ! Deep shell/Python checks inside
run:steps requireshellcheckandpyflakesto be present onPATH.