Skip to main content

CI/CD provider

ISSUE-1001HighPackage Managers and Lockfiles

mise: tools are declared and the lockfile is not committed

Control:CTRL-1001mise-en-place

📋 What is this?

A mise config file declares tools in [tools], but the lockfile mise writes them to (mise.lock, or mise.<env>.lock for mise.<env>.toml) is not committed.

⚠️ Impact

Without a lockfile, every mise install resolves versions and download URLs at install time, so CI can install a different build than the one that was reviewed, and nothing checks the downloaded bytes against a recorded checksum.

🔧 How to fix

Turn lockfiles on with [settings] lockfile = true in the config, run mise lock, and commit the lockfile. Install in CI with mise install --locked (or jdx/mise-action, which adds it when a lockfile exists).

✗ BeforeThe version is pinned, but its download URL and checksum are resolved on every install.
# mise.toml: ❌ no mise.lock committed next to it
[tools]
terraform = "1.9.8"
✓ After`mise.lock` records the URL and checksum of each platform, and `--locked` installs only what it records.
# mise.toml: ✅ lockfile on, mise.lock committed
[settings]
lockfile = true
[tools]
terraform = "1.9.8"
# then: mise lock && git add mise.lock
# in CI: mise install --locked

💡 Tips

  • Each config pairs with the lockfile next to it: mise.toml with mise.lock, mise.<env>.toml with mise.<env>.lock, a conf.d/ fragment with the mise.lock of the directory holding conf.d/. With [monorepo] lockfile = true in the root config, subproject configs pair with the root lockfiles.
  • Every committed mise config is checked, in any directory. .git, node_modules, vendor and hidden directories other than .config and .mise are skipped.
  • List a fixture directory in exemptPaths (for example examples/**) when its configs are not meant to be locked.

⚙️ Configure this control

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