Skip to content

feat: cache opt-out for setup-toolchain, mise.toml audit, toolchain lockfile - #252

Merged
h13 merged 1 commit into
mainfrom
feat/toolchain-hardening
Dec 1, 2026
Merged

h13 merged 1 commit into
mainfrom
feat/toolchain-hardening

Conversation

@h13

@h13 h13 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

First of two PRs implementing the remaining toolchain improvements (PR-B with the breaking changes follows once this releases as v2.1.0 — publish-node needs a released SHA of the action that has the new input).

  • setup-toolchain gains a cache input (default "true"). Passed through to mise-action and gating the pnpm store cache steps. Lets privileged jobs (publish/release paths) use the action with cache: "false" instead of bypassing it — follow-up PR points publish-node.yml back at the action
  • compliance-audit checks .mise.toml: a repo whose workflows reference the mise-based shared workflows (ci-node, publish-node, ci-markdown, ci-opentofu, ci-terraform) or setup-toolchain without a committed .mise.toml/mise.toml is flagged — the gap that bit smallbiz-suite's terraform job
  • Toolchain lockfile for this repo: [settings] lockfile = true in .mise.toml + committed mise.lock with sha256 checksums for all platforms (linux CI and macOS workstation), per the security checklist's lock-file bar. mise.lock added to ci.yml path filters

Test plan

  • actionlint clean
  • mise lock generated and verified locally (7 targets checked)
  • This PR's CI: test-markdown exercises the modified action with cache enabled (default path) and the lockfile present
  • After merge: release v2.1.0; PR-B consumes the new SHA

…ockfile

- setup-toolchain gains a cache input so privileged jobs (release and
  publish paths) can opt out of restoring caches another run could have
  seeded, instead of bypassing the action
- compliance-audit flags repos that call the mise-based shared workflows
  or the setup-toolchain action without committing a .mise.toml
- this repo's toolchain is now checksum-locked (mise.lock, settings
  lockfile = true), covering linux CI and macOS workstation platforms
@h13
h13 merged commit 95520e9 into main Dec 1, 2026
3 checks passed
@h13
h13 deleted the feat/toolchain-hardening branch December 1, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant