Repository navigation
v2.7.0: Lock file cleanup with --fix, shellcheck.reenable, and advanced-security findings no longer fail the job
Latestjactionlint --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
--fixremoves staleactions.lockentries. After you delete a workflow or stop using an action,--fixremoves the lock file entries thatgh actions-lockwould 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 needgh actions-lock, and the finding tells you so. The--format sarifoutput 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.lockto the files it checks. This means--fixcan rewriteactions.lockeven if you didn't pass it, so hook setups should allow that file to change or stage it.
- When you pass specific workflow files (for example from a hook that checks only changed files), jactionlint now adds the repository's
shellcheck.reenablereports one of the shellcheck codes that jactionlint excludes by default without hiding any other findings. Before this, the only option wasshellcheck.args: [--include=...]. shellcheck treats--includeas an allowlist, so it stopped every other code from being reported. (#363, reported by @amilligan)Accepted codes are SC1091, SC2043, SC2050, SC2153, SC2154, SC2157 and SC2194. Any other code is a config error. To exclude more codes, useshellcheck: reenable: [SC1091]
--excludeinargs.
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 newfail-on-findings: trueinput to get the old behavior back. The input only applies whenadvanced-securityis 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:andsecrets:. GitHub renamed two context availability keys, and jactionlint now uses the new names. Theissuesevent also accepts the newstatus_changedactivity type. (#369) secrets-outside-envno 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 setsenvironment:. The rule still warns for renamed or transformed mappings, reads outside environment jobs, dynamic access such astoJSON(secrets), nestedsecrets: 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.yamlfallback 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
revkeep 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.