Command-line static checker for GitHub Actions workflow YAML. It finds syntax mistakes, expression type errors, action input issues, and security problems before workflows run.
Overview
actionlint validates GitHub Actions workflow files locally or in CI. It checks workflow syntax for unexpected or missing keys, type-checks ${{ }} expressions, and verifies that action inputs and outputs match what each action defines.
It also validates reusable workflow calls, integrates shellcheck and pyflakes for run scripts, and flags risks such as script injection from untrusted inputs and hard-coded credentials. Additional checks cover glob patterns, job dependencies, runner labels, and cron schedules.
You install a released binary, Homebrew package, Go module, or run it from an official Docker image. Running the command in a project auto-detects workflows under .github/workflows. An online playground runs actionlint via WebAssembly in the browser.
Configuration can ignore errors for paths, set self-hosted runner labels, and tune other behavior. Integrations include reviewdog, Problem Matchers, super-linter, pre-commit, and VS Code. A Go API lets other tools embed the same checks.
Key features
- Workflow syntax validation
- Typed expression checking
- Action input and output checks
- Reusable workflow validation
- shellcheck and pyflakes in run steps
- Script injection and credential checks
- Runner label and cron validation
- Online playground and Docker image
Use cases
- Catch workflow mistakes before push
- Lint Actions YAML in CI pipelines
- Review reusable workflow contracts
- Harden workflows against injection
- Try fixes in the browser playground