Skip to content

v2.7.1: Composite action context fixes and faster action discovery

Latest

Choose a tag to compare

@jdx jdx released this 05 Dec 18:41
Immutable release. Only release title and notes can be modified.
78d575f

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: needs and vars are now reported as unavailable in a composite action everywhere except in a step's if: written without ${{ }}. Before, jactionlint accepted them, but the runner fails to load the action with Unrecognized named-value when they appear in run:, env:, with:, working-directory:, name:, continue-on-error:, an output's value, or an if: wrapped in ${{ }}. The finding suggests declaring an input and passing the value with with:. The pedantic require-expression-wrapping rule also no longer reports a bare composite if: that reads needs or vars, 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.yaml files with git 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 $HOME dotfiles repository, that meant reading all of $HOME. When status.showUntrackedFiles is no, only tracked files are listed. Without git, the fallback walk no longer enters directories that contain .git or .jj. (#378, reported by @smkent)
  • jactionlint run with mise: a step that ran mise (for example jdx/mise-action) failed with Permission denied on the checkout's mise.toml. This happened because mise read config files from the directories above the workspace copy. Steps now start with MISE_CEILING_PATHS set to the directory above the workspace copy, so mise reads only the copy's config, as it does on GitHub. If a step sets MISE_CEILING_PATHS itself, 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.