Skip to main content

CI/CD provider

ISSUE-1011HighPackage Managers and Lockfiles

mise: a tool uses a forbidden version

Control:CTRL-1001mise-en-place

📋 What is this?

A tool request in a mise config matches a pattern of forbiddenVersions (latest, lts, stable, nightly, prefix:, system, ...).

⚠️ Impact

The lockfile may still pin a version, but the next mise lock --bump, mise upgrade or regenerated lockfile moves it with no change in the config, so the version is never reviewed where people review it.

🔧 How to fix

Write an exact version in the config (terraform = "1.9.8"), run mise lock, and commit both files, or list the tool in exemptPackages if the exception is intentional.

✗ BeforeA lockfile refresh changes what CI installs without a reviewed change to `mise.toml`.
# mise.toml: ❌ moving versions
[tools]
terraform = "latest"
node = "lts"
✓ AfterA version change is a diff in `mise.toml` that someone reviews.
# mise.toml: ✅ exact versions
[tools]
terraform = "1.9.8"
node = "24.11.1"

💡 Tips

  • The default list does not catch a bare major such as node = "24", which mise resolves to the newest 24.x when it locks.
  • ref:* is left out on purpose: a ref pinned to a commit SHA cannot move. Add ref:* to forbid every git ref, branches and tags included.
  • The versions check reads no lockfile, so it runs even when the lockfile check is off.

⚙️ Configure this control

With the CLI alone: set it in your configuration file. Every field and default is in the controls index, CTRL-1001.