github jdx/jactionlint v2.7.0
v2.7.0: Lock file cleanup with --fix, shellcheck.reenable, and advanced-security findings no longer fail the job

one hour ago

jactionlint --fix can now remove stale entries from .github/workflows/actions.lock, and a new shellcheck.reenable key turns a default shellcheck exclusion back on. In the GitHub Action, findings uploaded with advanced-security: true no longer fail the job. This release also fixes several false positives.

Added

  • --fix removes stale actions.lock entries. After you delete a workflow or stop using an action, --fix removes the lock file entries that gh actions-lock would prune: entries for workflows that no longer exist, pins that are no longer used, and dependencies that no workflow reaches. It works offline and deletes whole lines, leaving everything else unchanged, including comments and CRLF line endings. A list or mapping that ends up empty is written as [] or {}. Missing entries and changed refs still need gh actions-lock, and the finding tells you so. The --format sarif output includes the same fixes. (#361)
    • When you pass specific workflow files (for example from a hook that checks only changed files), jactionlint now adds the repository's actions.lock to the files it checks. This means --fix can rewrite actions.lock even if you didn't pass it, so hook setups should allow that file to change or stage it.
  • shellcheck.reenable reports one of the shellcheck codes that jactionlint excludes by default without hiding any other findings. Before this, the only option was shellcheck.args: [--include=...]. shellcheck treats --include as an allowlist, so it stopped every other code from being reported. (#363, reported by @amilligan)
    shellcheck:
      reenable: [SC1091]
    Accepted codes are SC1091, SC2043, SC2050, SC2153, SC2154, SC2157 and SC2194. Any other code is a config error. To exclude more codes, use --exclude in args.

Fixed

  • Action: with advanced-security: true, the action uploads findings to code scanning and no longer fails the job for them (exit status 1). This matches how CodeQL, Trivy and zizmor behave. The job still fails if jactionlint itself fails (exit status 2 or 3). Set the new fail-on-findings: true input to get the old behavior back. The input only applies when advanced-security is enabled, and CLI exit codes are unchanged. (#354)
  • Calls to reusable workflows no longer get false "no context is available here" errors for expressions under with: and secrets:. GitHub renamed two context availability keys, and jactionlint now uses the new names. The issues event also accepts the new status_changed activity type. (#369)
  • secrets-outside-env no longer warns when a job passes a secret under its own name (TOKEN: ${{ secrets.TOKEN }}) to a local reusable workflow, if every job in that workflow that reads the secret sets environment:. The rule still warns for renamed or transformed mappings, reads outside environment jobs, dynamic access such as toJSON(secrets), nested secrets: inherit, and remote or unreadable callees. (#365, @wislertt)
  • Strict online checks no longer fail when the token is refused (for example by an organization's IP allow list) but the repository is public and the requested ref or file doesn't exist. jactionlint now accepts a not-found answer from the anonymous retry, so the action.yaml fallback and the branch-vs-tag check work as usual. Other anonymous failures still keep the original 403. (#351)

Deprecated

  • The pre-commit hooks published by this repository are deprecated. Existing configs pinned to a v2 rev keep working, and the hook IDs are unchanged. The hooks will be removed in v3. The hook guide explains how to switch to hk or to a repository-local pre-commit hook that uses a separately installed jactionlint binary. (#359)

Full Changelog: v2.6.0...v2.7.0

💚 Sponsor jactionlint

jactionlint is a fork of rhysd/actionlint, maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.

If jactionlint has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep jactionlint fast, free, and independent.

Don't miss a new jactionlint release

NewReleases is sending notifications on new releases.