chore(deps): update jactionlint to 2.6.0
| Package | Change | Type | File |
|---|---|---|---|
| jactionlint | 2.4.0 → 2.6.0 | minor | mise.toml |
Release notes · 2.4.0 → 2.6.0 (2 releases)
2.6.0
jactionlint 2.6.0 adds jactionlint update, which finds newer releases of the actions and reusable workflows you use and can pin them to commit SHAs. This release also fixes jactionlint run --container for containers whose platform differs from the host, and the action can now download jactionlint with a token so it isn't hit by GitHub's limits on anonymous downloads.
Added
jactionlint update: update actions and pin to SHAs
jactionlint update checks the external actions and reusable workflows in your workflows and action.yml files. It finds the latest release your policy allows, then lists, previews or writes the new references. It is separate from --fix, so a lint run never changes a version. Use it locally, in a hook or as a CI check. Use Dependabot or Renovate if you want pull requests instead. (jdx/jactionlint#335, @jdx)
jactionlint update # list available updates, change nothing
jactionlint update --check # exit 1 on an update, a policy violation or an unverifiable reference
jactionlint update --diff # unified diff, change nothing
jactionlint update --apply # write the changes
- Policy. Set the policy in a new
update:section of the config file, or with command-line options, which override the config:
The matching options are# .github/jactionlint.yaml update: cooldown-days: 7 freeze: true include-tags: "v*" exclude-tags: ["*-{alpha,beta,rc}*"] exclude-prereleases: true require-immutable-releases: true--min-age,--freeze,--include-tagand--exclude-tag. Other options:--pin-onlypins the current release without upgrading it,--branch-to-tag REGEXconverts branch refs such as@mainto the latest release,--include-action/--exclude-actionfilter by action, and--action-rule REGEX=ignore|cooldown:DAYSsets a policy for specific actions. - Safety. It never moves a reference to an older version. If a newer release is held back by the cooldown, it says so. Before updating a pinned SHA, it checks the SHA and its version comment against the repository's tags. It edits only the ref and the version in the comment, and keeps quotes, indentation, line endings and comments that are still true. A line it can't edit without guessing is reported and left as is. A failed lookup is reported as
update-unverifiedand never counted as up to date. - Output. Findings have the IDs
update-available,update-policy,update-unverifiedandupdate-held, and work with every--format, including SARIF. They aren't linter rules, so--ignore,ignoresand ignore comments don't apply to them. Use--exclude-action,--action-ruleor--changed-sinceto leave references out.updatealways uses the online settings (token, cache, GHES, github.com fallback). - Actions lock file. If
.github/workflows/actions.lockexists,--applyends by runninggh actions-lock --relockfrom the repository root, even when no reference changed. The listing,--checkand--diffnever run it. Ifghor the extension is missing, or the relock fails,updateexits3. Workflow edits made before that point stay written. (jdx/jactionlint#341, @jdx)
See the update guide for details.
Authenticated release downloads
When JACTIONLINT_TOKEN is set, download-jactionlint.bash sends it with the release download request to github.com. It is never sent to the redirect host. The GitHub Action passes its token input to the script, which is github.token by default. On GitHub Enterprise Server, the action doesn't pass the token. Without the variable, downloads work without credentials as before. (jdx/jactionlint#346, @jdx, @joschi)
Fixed
jactionlint run --containernow uses the container's platform instead of the host's. Before, JavaScript actions (setup-*,actions/github-script,jdx/mise-action) failed with an exec format error when run from a Mac or in a container of another architecture. The platform comes from--platform, thenDOCKER_DEFAULT_PLATFORM, then the image's own platform. Each container platform gets its own tool cache and matching Node.js build, and anodeon the host'sPATHis never used inside a container.runner.os,runner.arch,RUNNER_OSandRUNNER_ARCHnow report the container's platform, so steps underif: runner.os == 'Linux'run instead of being skipped.runner.tempandrunner.tool_cache, which were empty before, now matchRUNNER_TEMPandRUNNER_TOOL_CACHE. (jdx/jactionlint#344, @jdx)unpinned-tools(pedantic) no longer reportsgo install tool, which installs the tools at the versions fixed bygo.modandgo.sum. Bareall,stdandcmdare no longer reported either.go install example.com/xwithout a version is still reported. (jdx/jactionlint#338, @ktsu2i)- Binaries are now built with Go 1.27.4, which fixes GO-2026-6859, an
net/httpserver crash. (jdx/jactionlint#345, @jdx)
New Contributors
- @ktsu2i made their first contribution in jdx/jactionlint#338
- @joschi made their first contribution in jdx/jactionlint#346 (originally jdx/jactionlint#342)
Full Changelog: https://github.com/jdx/jactionlint/compare/v2.5.0...v2.6.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.
2.5.0
jactionlint 2.5.0 adds jactionlint run, which runs the jobs of a workflow on your machine inside an OS sandbox, without a container engine. It also adds the unreachable-required-check rule, fixes two unpinned-images issues, and accepts the apm Dependabot ecosystem.
Added
jactionlint run: run workflows locally
jactionlint run lets you debug a run: script, an expression, a matrix or the needs wiring without pushing a commit. It shows what happened on your machine, not whether the workflow will pass on GitHub. Every skip or refusal is printed with its reason, and the run guide has a "Differences from GitHub" table. The workflow is first linted with the correctness profile, and the run stops on an error (--no-lint skips the lint). (jdx/jactionlint#316, jdx/jactionlint#317, jdx/jactionlint#319, jdx/jactionlint#320, jdx/jactionlint#321, jdx/jactionlint#322, jdx/jactionlint#323, jdx/jactionlint#324, @jdx)
jactionlint run --list # jobs and matrix cells in dependency order, nothing runs
jactionlint run ci -j test # run job `test` of .github/workflows/ci.yml and the jobs it needs
jactionlint run ci --dry-run # the steps with ${{ }} replaced, nothing runs
jactionlint run ci -e pull_request --secret TOKEN=abc --var REGION=eu
jactionlint run --check-sandbox # what this machine can enforce
- Plan view.
--list(--jsonfor JSON) groups jobs into stages and expands matrices the way the runner does:exclude, theninclude. It evaluatesname:,runs-on:and jobif:expressions that it can, and marks each oneif is trueorif is false. Thegithubcontext comes from git,-i NAME=VALUEsetsworkflow_dispatchinputs, and--event-filesuppliesgithub.event. A matrix built fromneedsoutputs shows as "known at run time". - Steps and jobs. Supports
run:steps withshell,working-directory,defaults.run, layeredenv,timeout-minutesandcontinue-on-error. Also supported: step and job outputs,needs.*.result, matrices withfail-fast, background andparallel:steps, theGITHUB_ENV/PATH/OUTPUT/STATE/STEP_SUMMARYfile commands and workflow commands. Values from--secretand::add-mask::show as***in all output. Jobs whoseruns-onnames a different OS are skipped. Ctrl-C cancels the steps, and steps withif: always()still run. - Actions and reusable workflows. Runs local, composite and JavaScript actions (with
pre/post) and local or remote reusable workflows. If no Node.js onPATHhas the right major version, jactionlint downloads it and checks it against the release'sSHASUMS256.txt. Remote actions and reusable workflows must be pinned to a commit SHA. Use--trust-actionsto resolve a tag or branch and print the commit it picked.actions/checkout,upload-artifactanddownload-artifactare replaced with local versions. Use--no-shim ACTIONto run the real action. - Local actions cache. A cache service on
127.0.0.1works with unmodifiedactions/cache,setup-*,jdx/mise-actionand other actions built on@actions/cache, so a second run restores instead of downloading again. Caches are scoped to the ref and fall back to the default branch. Entries expire after 7 days, and the store has a 10 GB LRU limit (--cache-size). Related options:--cache=read-only|off,--no-cache,--cache-dir. Manage the store withjactionlint cache ls|rm|prune|path. - Network modes.
--net=openis the default.--net=noneblocks internet sockets.--net=proxyallows only a proxy that lets through GitHub and the common package registries. It needs Landlock ABI 4, which is Linux 6.7 or later.--allow-net HOST,...adds hosts, and--learnprints the hosts your steps contacted. - Containers (optional).
container:jobs,services:and Docker actions run throughdockerorpodman(--container-engine). By default all capabilities are dropped except nine, andno-new-privilegesis set. jactionlint never runs privileged containers or mounts the host home or Docker socket. Images must be pinned by digest unless you pass--trust-images.options:is checked against an allow list:--privileged,--cap-add,-v,--network hostand similar options are refused unless you pass--unsafe-container-options. Use--containerto run Linux matrix cells in a digest-pinnedubuntuimage, for example from a Mac. If no engine is installed, or you pass--no-containers, only the jobs and steps that need a container are skipped.
The Count left some release notes out to keep this description short — read all releases.
Count Patchula opened this PR
The Count keeps watch over this repo. He works for free, but if you find him helpful, consider supporting his development.
- Re-check this PR now
- Add to the batch PR (closes this PR and moves the update there)