Skip to main content

jactionlint

CI status Go reference

jactionlint is a static checker for GitHub Actions workflow files, composite actions and dependabot.yml. It is a fork of rhysd/actionlint that merges the pull requests of upstream and adds security and policy checks, automatic fixes and a baseline. Try it in the playground without installing anything.

What it checks

  • Syntax and schema: unexpected or missing keys, event names, glob patterns, runner labels, cron syntax and needs: dependencies.
  • Typed expressions: ${{ }} expressions are type-checked, so an unknown property or a type mismatch is a finding.
  • Action inputs and reusable workflows: the with: inputs and steps.<id>.outputs of actions, and the inputs, outputs and secrets of reusable workflows.
  • Scripts: the shell scripts of run: go through shellcheck and the Python scripts (shell: python) through pyflakes, which you install yourself.
  • Security and policy: untrusted input in scripts, unpinned actions, excessive permissions, dangerous triggers, cache poisoning, hard-coded credentials and missing timeouts. jactionlint and zizmor compares these rules with zizmor.
  • Online checks: opt-in checks of the actions a workflow uses against the GitHub API. Without them, jactionlint does not use the network.

Example

Save this workflow as test.yaml. It has a typo in a trigger, an untrusted value in a script, an undefined matrix property, an unpinned action, and no permissions, timeout or concurrency group:

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 }}"

Run jactionlint test.yaml. The default profile, which applies when you configure nothing, reports these findings (without colors):

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 --profile correctness test.yaml reports only workflow-syntax, template-injection and undefined-property. jactionlint --diff test.yaml prints the safe fixes of artipacked, missing-permissions and template-injection as a diff and writes nothing. The playground turns off the default rules that a minimal example breaks, so it reports the findings of the correctness profile for this workflow.

Install

mise use -g jactionlint
jactionlint --version

Without -g, mise use jactionlint records the tool in the mise.toml of the current project. The other methods:

  • Download an archive for your platform from the releases. It holds the executable, the man page and the docs.
  • Install the Homebrew cask: brew tap jdx/jactionlint https://github.com/jdx/jactionlint, then brew install --cask jdx/jactionlint/jactionlint.
  • Run the download script, which downloads the archive of your platform and extracts the executable. It does not verify the archive.
  • Pull the Docker image ghcr.io/jdx/jactionlint, which also holds shellcheck and pyflakes.
  • Build it with Go: go install github.com/jdx/jactionlint/v2/cmd/jactionlint@latest.

Distribution packages named actionlint install the original project, not this fork. These docs describe the main branch: jactionlint --help shows what the installed version supports. Installation has the details and how to verify a download.

Run it

jactionlint

With no arguments, jactionlint checks the workflows, composite actions, dependabot.yml and Actions lock file of the repository (what a run checks). Run it in a Git or Jujutsu repository that has a .github/workflows directory: outside a repository it exits with status 3. Pass file names to check only those, wherever they are (for example the test.yaml above), or - to read standard input.

  • The exit status is 0 for success, 1 when a finding of level error is left, 2 for an invalid command line and 3 for a failure. Exit status lists every cause.
  • The name in brackets at the end of a finding is its rule ID. jactionlint --explain unpinned-uses prints what the rule checks, its group, profile, level, options and fix. These pages describe the development version, so a release can lack an option such as --explain: when jactionlint --help of your install does not list an option, build the main branch with go install github.com/jdx/jactionlint/v2/cmd/jactionlint@main.
  • To silence a finding you accept, put # jactionlint ignore=unpinned-uses on the line above it (Ignore findings).
  • shellcheck and pyflakes are separate programs. When one is missing, jactionlint prints a note and skips the scripts it would have checked, and the missing program does not fail the run.
  • jactionlint --init-config writes .github/jactionlint.yaml (Configuration).

Choose a profile

Profile Checks
correctness What actionlint checks and the bug detectors of jactionlint. It has almost no security posture or policy rules.
default correctness plus the security and policy rules worth failing a build on. It applies when you configure nothing.
pedantic default plus the noisy and opinionated rules.

Choose a profile with --profile or with profile: in the config file. The default profile can fail on the first run in a repository that never followed it. When a text run on a terminal or in CI reports many findings and applies no baseline, jactionlint prints a hint about the baseline; --no-hints turns it off.

To adopt the default profile step by step, fix what --profile correctness reports first, because those findings are mistakes and not debt to record. Then record the findings that are left and apply the record. A plain run applies the baseline only when the config file sets baseline: auto; --baseline applies it to one run.

# the checks of actionlint plus the bug detectors: fix what this reports first
jactionlint --profile correctness

# then record the findings of the default profile that are left, and apply the record
jactionlint --baseline-write
jactionlint --baseline

See Profiles, Adopt new checks with a baseline, Coming from actionlint and Migrating to v2.

Use it in CI

jdx/mise-action installs the tools of the mise.toml of the repository, so add jactionlint with mise use jactionlint first. The step fails on a finding of level error. This workflow reports nothing under the default profile:

name: Lint GitHub Actions workflows
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/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
      - run: jactionlint

Run jactionlint in CI also covers the jactionlint action, which annotates pull requests or reports to code scanning, the Docker image and problem matchers. Git hooks and editors covers hk and pre-commit.

Documentation

The site jactionlint.jdx.dev renders the pages in docs/, and the release archives hold the same files. Start with these pages:

Page Read it when
Installation you choose how to install jactionlint (mise, Homebrew, a release archive, the download script, Docker or Go) and check that it works.
Run jactionlint you run jactionlint on a repository, files or stdin, choose a profile, explain a rule or set up shellcheck, pyflakes and completion.
Ignore findings you accept a finding and silence it with a comment, an option, the config file or a zizmor comment.
Adopt new checks with a baseline you adopt a stricter profile before everything is fixed: record a baseline so that only new findings fail.
Run jactionlint in CI you run jactionlint on GitHub Actions with the action, mise, Docker or the download script and show findings as annotations or code scanning alerts.
Configuration you create .github/jactionlint.yaml or look up a key, a profile or the level of a rule.
Checks you hold a finding or a rule ID and want to know what is checked, with an example and the fix.

The full list of pages is in docs/README.md.

Contributing and bugs

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. NOTICE.md names the projects it builds on, including actionlint, zizmor and ghlint.

Metadata

Release files for jactionlint 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for jactionlint 2.2.0
File Actions
jactionlint-2.2.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for jactionlint-2.2.0-py3-none-win_arm64.whl
jactionlint-2.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for jactionlint-2.2.0-py3-none-win_amd64.whl
jactionlint-2.2.0-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for jactionlint-2.2.0-py3-none-manylinux_2_17_x86_64.whl
jactionlint-2.2.0-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for jactionlint-2.2.0-py3-none-manylinux_2_17_aarch64.whl
jactionlint-2.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for jactionlint-2.2.0-py3-none-macosx_11_0_arm64.whl
jactionlint-2.2.0-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for jactionlint-2.2.0-py3-none-macosx_10_9_x86_64.whl

Total release size: 101.4 MB

Release files / jactionlint-2.2.0-py3-none-win_arm64.whl

Download URL jactionlint-2.2.0-py3-none-win_arm64.whl
Size 16.3 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
027d5c6426c97a1a72b03e2f3ae5693bccb6798979496d260e15829a33559828
BLAKE2b-256 checksum
How to use checksums
350b83b3fd62e1d97c428ab1d234e2581ec9dcfaaf09391d1009a8d917811dfa
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 Oct 14, 2026.

Transparency log

Release files / jactionlint-2.2.0-py3-none-win_amd64.whl

Download URL jactionlint-2.2.0-py3-none-win_amd64.whl
Size 17.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
93da04a956690dd36bd6a5b2028eeec8d2db506af51560ac3d67c3546a5ded9d
BLAKE2b-256 checksum
How to use checksums
eec2d39e76936b07600876f37d38700e27d6d12729f3f626bacdd77e7f1de686
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 Oct 14, 2026.

Transparency log

Release files / jactionlint-2.2.0-py3-none-manylinux_2_17_x86_64.whl

Download URL jactionlint-2.2.0-py3-none-manylinux_2_17_x86_64.whl
Size 17.3 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4aafae7fc2b5901d77bb6c7777236311a136d76f329af6f10c5c21453b582bd7
BLAKE2b-256 checksum
How to use checksums
a5817ce5f912850a592ad38aab0f4806a925a59204e114f613e716892aac802e
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 Oct 14, 2026.

Transparency log

Release files / jactionlint-2.2.0-py3-none-manylinux_2_17_aarch64.whl

Download URL jactionlint-2.2.0-py3-none-manylinux_2_17_aarch64.whl
Size 16.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
caf4625794fdf1877d2b3843cff20bc7d6d29e1fc7bb68e8194d3810b7b6e671
BLAKE2b-256 checksum
How to use checksums
e6e47d374fa368ded644317f9ea5fcbbdadffb02e49592b46c9225495ea27f49
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 Oct 14, 2026.

Transparency log

Release files / jactionlint-2.2.0-py3-none-macosx_11_0_arm64.whl

Download URL jactionlint-2.2.0-py3-none-macosx_11_0_arm64.whl
Size 16.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c9f064198199081cc1c7bab1d09675563df35299926aca60b6d32d99e7252e1b
BLAKE2b-256 checksum
How to use checksums
f503b2d6402adc765c1e826b30210ca7e691e4dbde5c35a537caf883c75c487b
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 Oct 14, 2026.

Transparency log

Release files / jactionlint-2.2.0-py3-none-macosx_10_9_x86_64.whl

Download URL jactionlint-2.2.0-py3-none-macosx_10_9_x86_64.whl
Size 17.6 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
2da1fe02c67c72e1bc1dd799578a27596323ef5f734845c9131671a5db411782
BLAKE2b-256 checksum
How to use checksums
4b8f4d66056f9d7f3cc79504424dbf8e1f191c88f456bef72844572c97af2ddc
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 Oct 14, 2026.

Transparency log

Security for jactionlint 2.2.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.

Select from 6 files

Attestation for jactionlint-2.2.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 Oct 14, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page