jactionlint is a static checker for GitHub Actions. It reads your workflows, composite actions and dependabot.yml and reports two kinds of problems: the mistakes that make a run fail or misbehave, and the patterns that let an outsider run code in your repository or steal its token. It started as a fork of actionlint and covers its checks, and its security rules follow the audits of zizmor.
- Correctness. Unknown keys and events, type errors in
${{ }}expressions, wrong inputs of actions and reusable workflows, and brokenneeds:, cron and glob patterns. shellcheck and pyflakes check the scripts ofrun:steps. - Security. Script injection, excessive token permissions, dangerous triggers such as
pull_request_target, cache poisoning, credentials left in the checkout and AI agent actions that outsiders can steer. - Policy. Actions used by a tag instead of a commit, and workflows without
permissions:, a job timeout or a concurrency group. - Fixes.
jactionlint --fixrepairs what has a mechanical fix, and--diffshows the change first. - Gradual adoption. Profiles choose how much is checked, and a baseline fails the build only on new findings.
- Local runs.
jactionlint run ciruns the jobs of a workflow on your machine, every step in an OS sandbox, with a local actions cache and no container engine unless the workflow asks for one. See Run workflows locally. - Updates.
jactionlint updatefinds the latest release of each action that your cooldown, tag and immutability policy allows, and shows, previews (--diff) or writes (--apply) the new references, pinned to a commit SHA with a version comment if you like. See Update actions. - No network unless you ask. The online checks, which ask GitHub about archived repositories, impostor commits and published advisories, run only with
--online.
Try it without installing anything in the playground, which runs jactionlint in your browser.
Quick start
Install jactionlint with mise and run it at the root of a repository:
mise use -g jactionlint
jactionlint
With no arguments, jactionlint checks the workflows, composite actions, dependabot.yml and Actions lock file of the repository. Pass file names to check only those, or - to read standard input. It exits with status 1 when a finding of level error is left.
Other ways to install it:
- Homebrew:
brew tap jdx/jactionlint https://github.com/jdx/jactionlint, thenbrew install --cask jdx/jactionlint/jactionlint. - PyPI:
uvx jactionlintruns it without installing it, andpipx install jactionlintoruv tool install jactionlintinstalls it. - Docker: the image
ghcr.io/jdx/jactionlintalso holds shellcheck and pyflakes. Run the image shows the command. - Go:
go install github.com/jdx/jactionlint/v2/cmd/jactionlint@latest. - Release archives: download the archive for your platform from the releases and verify it.
Packages named actionlint, as in Homebrew core, install the original project, not this fork. Installation covers every method.
Example
This workflow has a typo in a trigger, untrusted input in a script and an undefined matrix property. It also uses an action by tag and sets no permissions, timeout or concurrency group. Save it as test.yaml:
on:
push:
branch: main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "${{ github.event.head_commit.message }}"
- run: echo "${{ matrix.os }}"
jactionlint test.yaml prints each finding with its position, a message, the line it points at and, in brackets, the ID of its rule:
test.yaml:1:1: workflow has no "concurrency:", so every run of it executes at the same time even when a newer run supersedes the older ones. add a top-level "concurrency:" with a "group:" and "cancel-in-progress: true" [concurrency-limits]
|
1 | on:
| ^~~
test.yaml:3:5: unexpected key "branch" for "push" section. expected one of "branches", "branches-ignore", "paths", "paths-ignore", "tags", "tags-ignore", "types", "workflows" [workflow-syntax]
|
3 | branch: main
| ^~~~~~~
test.yaml:5:3: "timeout-minutes" is not set at this job. Set it to avoid wasting runner minutes when the job hangs. Set "default-minutes" in the "missing-timeout" rule options of the configuration to turn on the --fix fix [missing-timeout]
|
5 | test:
| ^~~~~
test.yaml:5:3: neither the workflow nor this job sets "permissions:" so the GITHUB_TOKEN gets the default permissions of the repository. set "permissions:" at workflow-level or job-level (use "permissions: {}" for no permissions) because the "missing-permissions" rule is enabled [missing-permissions]
|
5 | test:
| ^~~~~
test.yaml:8:15: action "actions/checkout@v4" must be pinned to a full-length commit SHA like "{owner}/{repo}@{sha}" because the "unpinned-uses" rule is enabled [unpinned-uses]
|
8 | - uses: actions/checkout@v4
| ^~~~~~~~~~~~~~~~~~~
test.yaml:8:15: actions/checkout leaves the GITHUB_TOKEN in the git config of the workspace, where a later step such as an artifact upload can publish it. set "persist-credentials: false" under "with:" unless a later step needs to push [artipacked]
|
8 | - uses: actions/checkout@v4
| ^~~~~~~~~~~~~~~~~~~
test.yaml:9:24: "github.event.head_commit.message" is potentially untrusted. avoid using it directly in inline scripts. instead, pass it through an environment variable. see https://docs.github.com/en/actions/reference/security/secure-use#good-practices-for-mitigating-script-injection-attacks for more details [template-injection]
|
9 | - run: echo "${{ github.event.head_commit.message }}"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test.yaml:10:24: property "os" is not defined in object type {} [undefined-property]
|
10 | - run: echo "${{ matrix.os }}"
| ^~~~~~~~~
jactionlint --explain template-injection prints what a rule checks, why it matters and how to fix it. With --profile correctness, jactionlint reports only workflow-syntax, template-injection and undefined-property. The other five findings come from the security and policy rules of the default profile, which applies when you configure nothing.
jactionlint --diff test.yaml previews the safe fixes, and jactionlint --fix test.yaml applies them. Here they stop actions/checkout from persisting the token, give the token read-only permissions and pass the untrusted message through an environment variable:
--- a/test.yaml
+++ b/test.yaml
@@ -1,10 +1,17 @@
on:
push:
branch: main
+
+permissions:
+ contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - run: echo "${{ github.event.head_commit.message }}"
+ with:
+ persist-credentials: false
+ - run: echo "${HEAD_COMMIT_MESSAGE}"
+ env:
+ HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
- run: echo "${{ matrix.os }}"
Run it in CI
The jactionlint action installs jactionlint, checks the repository and annotates the pull request with the findings. This workflow passes the default profile itself:
name: jactionlint
on:
push:
branches: [main]
pull_request:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
jactionlint:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: jdx/jactionlint@9e87e8f34edfc00b849a27807e26eff9d00b936d # v2.5.0
Set advanced-security: true under with: to upload the findings to code scanning instead, which needs security-events: write. Run jactionlint in CI also covers mise, which verifies the download, the Docker image and problem matchers. Git hooks and editors covers hk and pre-commit.
Adopt it on an existing repository
The default profile can fail the first run on a repository that never followed it. Choose how much is checked with --profile, or with profile: in .github/jactionlint.yaml:
| Profile | What it checks |
|---|---|
correctness |
The checks of actionlint and the bug detectors of jactionlint. |
default |
correctness, plus the security and policy rules worth failing a build on. It applies when you configure nothing. |
pedantic |
default, plus the noisier and opinionated rules. |
Fix what the correctness profile reports first, because those findings are mistakes, not debt. Then record what the default profile still finds, and let the build fail only on new findings:
jactionlint --profile correctness # fix these first
jactionlint --baseline-write # record the findings that are left
jactionlint --baseline # fail only on new findings
Silence a finding that you accept with a comment such as # jactionlint ignore=unpinned-uses on the line above it. jactionlint --init-config writes a config file to start from. See Profiles, Adopt new checks with a baseline and Ignore findings.
Coming from actionlint or zizmor
- From actionlint. jactionlint reads the config file of actionlint.
--profile correctnesskeeps the checks that you have, and the default profile adds the security and policy rules when you are ready for them. Coming from actionlint lists the renamed options and the differences. - From zizmor. Each audit of zizmor 1.30.1 has a rule, under the same ID in every case but one, and
# zizmor: ignore[...]comments keep working. jactionlint and zizmor maps the audits, the personas and the settings ofzizmor.yml.
Documentation
jactionlint.jdx.dev has the full documentation, and the release archives hold the same pages. These are the ones to start with:
- Installation and Run jactionlint: install it, run it and read a finding.
- Checks and Rules: what each rule finds, with an example and the fix.
- Fix findings automatically: safe and unsafe fixes, and why a finding has none.
- Configuration:
.github/jactionlint.yaml, profiles and rule levels. - Go API: use jactionlint from a Go program.
The site documents the main branch. jactionlint --help lists what your installed version supports.
Contributing
To report a bug, a false positive or an idea for a check, open an issue with a minimal workflow that shows it. CONTRIBUTING.md explains how to build and test jactionlint and how to propose a change.
License and acknowledgments
jactionlint is distributed under the MIT license. It is a fork of actionlint by rhysd, and its security rules follow the audits of zizmor. NOTICE.md names every project that it builds on.
Metadata
Release files for jactionlint 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| jactionlint-2.6.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details for jactionlint-2.6.0-py3-none-win_arm64.whl |
| jactionlint-2.6.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for jactionlint-2.6.0-py3-none-win_amd64.whl |
| jactionlint-2.6.0-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for jactionlint-2.6.0-py3-none-manylinux_2_17_x86_64.whl |
| jactionlint-2.6.0-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for jactionlint-2.6.0-py3-none-manylinux_2_17_aarch64.whl |
| jactionlint-2.6.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for jactionlint-2.6.0-py3-none-macosx_11_0_arm64.whl |
| jactionlint-2.6.0-py3-none-macosx_10_9_x86_64.whl | Python 3 | none | macOS 10.9+ x86-64 | Details for jactionlint-2.6.0-py3-none-macosx_10_9_x86_64.whl |
Total release size: 115.7 MB
Release files / jactionlint-2.6.0-py3-none-win_arm64.whl
| Download URL | jactionlint-2.6.0-py3-none-win_arm64.whl |
|---|---|
| Size | 18.5 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
9682cedc90a29e45a19298c90ab2d0365e2aba3c7e98874dd5a0dace8a506163
|
|
BLAKE2b-256 checksum How to use checksums |
8aa9e4d709cfd35491ea256948d44fee90a27d300aca75e46331cb51dafc206b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / jactionlint-2.6.0-py3-none-win_amd64.whl
| Download URL | jactionlint-2.6.0-py3-none-win_amd64.whl |
|---|---|
| Size | 20.3 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a15f6f5a46d80f38f8b7b32d0c430faf0c2cbf00f9c7ea4924b12b304b8b6e18
|
|
BLAKE2b-256 checksum How to use checksums |
8ce267cb8e0bf1943ac5d0c67b761971ef06aba1182f0b8af06ac7912e83282f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / jactionlint-2.6.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | jactionlint-2.6.0-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 19.8 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b8b16e1e1f13411a7611cec18705e3211c4376fd5cb8b073dae4332c07abcd06
|
|
BLAKE2b-256 checksum How to use checksums |
91d6c9d3eb17364b50d574e9abd280ea399aeca95c0dcf26abd0bc0ed26c4c69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / jactionlint-2.6.0-py3-none-manylinux_2_17_aarch64.whl
| Download URL | jactionlint-2.6.0-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 18.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
831093514388f37afee588aaf1a33cb1fd21ddd597a3d545a79815a4e93281dd
|
|
BLAKE2b-256 checksum How to use checksums |
7452b63faf525184d25107b99a617b02b5f0bdd478afa19907cb5119c188a5cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / jactionlint-2.6.0-py3-none-macosx_11_0_arm64.whl
| Download URL | jactionlint-2.6.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 18.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
53ff5a9b211d235b29fd747de70b6ce0316d40f302b1ffd8a151c57d4494ad54
|
|
BLAKE2b-256 checksum How to use checksums |
6e644d4de1263fbf08939e878c664aa2e17b20c33a3922d3d2bd5b61623b0f54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / jactionlint-2.6.0-py3-none-macosx_10_9_x86_64.whl
| Download URL | jactionlint-2.6.0-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 20.1 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
55a0c67cdd228910aa5d520a6935205f09aade3a02acea2119b41f86605b7c1d
|
|
BLAKE2b-256 checksum How to use checksums |
017d5299d354518eed2cc12c7cebca9b17cd46e601f508fab94a33f4b3c57b78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for jactionlint 2.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for jactionlint-2.6.0-py3-none-win_arm64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.