Repository navigation
jactionlint now rejects needs and vars in composite actions where the runner rejects them, and no longer reads the whole directory tree below the project root when it looks for actions. jactionlint run also works on repositories that have a mise.toml at their root.
Fixed
- Composite actions:
needsandvarsare now reported as unavailable in a composite action everywhere except in a step'sif:written without${{ }}. Before, jactionlint accepted them, but the runner fails to load the action withUnrecognized named-valuewhen they appear inrun:,env:,with:,working-directory:,name:,continue-on-error:, an output's value, or anif:wrapped in${{ }}. The finding suggests declaring an input and passing the value withwith:. The pedanticrequire-expression-wrappingrule also no longer reports a bare compositeif:that readsneedsorvars, because wrapping it would stop the action from loading. (#374, reported by @candavere) - Action discovery no longer walks the whole tree: in a git work tree, jactionlint now finds
action.yml/action.yamlfiles withgit ls-files, so it skips ignored directories and nested clones. Before, every run walked every directory below the project root, even when you passed specific files. In a$HOMEdotfiles repository, that meant reading all of$HOME. Whenstatus.showUntrackedFilesisno, only tracked files are listed. Without git, the fallback walk no longer enters directories that contain.gitor.jj. (#378, reported by @smkent) jactionlint runwith mise: a step that ran mise (for examplejdx/mise-action) failed withPermission deniedon the checkout'smise.toml. This happened because mise read config files from the directories above the workspace copy. Steps now start withMISE_CEILING_PATHSset to the directory above the workspace copy, so mise reads only the copy's config, as it does on GitHub. If a step setsMISE_CEILING_PATHSitself, that value is used. (#370)
Full Changelog: v2.7.0...v2.7.1
💚 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.