GitHub Actions Linter
Lint GitHub Actions workflows and composite actions for errors and security issues (script injection, permissions, unpinned actions) with a fix per finding.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/github-actions-linter/install.ps1 | iexlocaltools-github-actions-linter updatelocaltools-github-actions-linter uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/github-actions-linter/install.sh | bashlocaltools-github-actions-linter updatelocaltools-github-actions-linter uninstall
brew install chayprabs/localtools/localtools-github-actions-linterbrew upgrade localtools-github-actions-linterbrew uninstall localtools-github-actions-linter
scoop bucket add localtools https://github.com/chayprabs/homebrew-localtools; scoop install localtools-github-actions-linterscoop update localtools-github-actions-linterscoop uninstall localtools-github-actions-linter
winget install localtools.GithubActionsLinterwinget upgrade localtools.GithubActionsLinterwinget uninstall localtools.GithubActionsLinter
Opens at http://127.0.0.1:47113 in your browser. Run localtools-github-actions-linter --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.
Direct download
| Platform | File | Size |
|---|---|---|
| Linux ARM64 | github-actions-linter-1.0.4-linux-arm64.zip | 12.7 MB |
| Linux x64 | github-actions-linter-1.0.4-linux-x64.zip | 13.4 MB |
| macOS Apple Silicon | github-actions-linter-1.0.4-macos-arm64.zip | 12.4 MB |
| macOS Intel | github-actions-linter-1.0.4-macos-x64.zip | 13.2 MB |
| Windows x64 | github-actions-linter-1.0.4-windows-x64.zip | 13.0 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Open GitHub Actions Linter (it starts at http://127.0.0.1:47113).
- Paste a workflow or action.yml, drop files or a .zip, or choose a repository folder: .github/workflows/* and action.yml files are picked up.
- Press Lint workflows: actionlint correctness checks and offline zizmor security audits give one list with file:line:column, severity, explanation and a fix snippet.
- Ignore rules you accept (field or per-finding button), then download JSON, SARIF or Markdown.
- In CI: localtools-github-actions-linter check . --format sarif --fail-on warn > actions.sarif (exit 2 when warnings or errors remain).
FAQ
Does it contact GitHub or upload my workflow?
No. Both engines run locally. zizmor always runs with --offline --no-config and without your GitHub credentials, so online audits (known-vulnerable-actions, impostor-commit, ref-confusion, stale-action-refs) are not included.
What checks are included?
actionlint 1.7.12 checks syntax, expressions and contexts, needs, matrix, runner labels and popular-action inputs; zizmor 1.31.1 adds template injection, unpinned actions, excessive permissions, dangerous triggers, credential persistence, cache poisoning and more. Composite action.yml files are audited by zizmor and checked against actionlint's action schema.
How do I silence a finding?
Use --ignore rule-id (or the UI field and per-finding button), --ignore-regex for actionlint messages, or a # zizmor: ignore[rule] comment on the reported line.
Can it fail CI or feed GitHub code scanning?
Yes. --fail-on error|warn|info exits with code 2 when such findings exist, and --format sarif writes SARIF 2.1.0.
Does it fix or pin actions for me?
No. Every finding has a fix snippet to apply by hand. Offline it cannot look up commit SHAs, so it tells you where to find the SHA and never invents one.