- Issues
- ISSUE-1001
CI/CD provider
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).
# mise.toml: ❌ no mise.lock committed next to it[tools]terraform = "1.9.8"# 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.tomlwithmise.lock,mise.<env>.tomlwithmise.<env>.lock, aconf.d/fragment with themise.lockof the directory holdingconf.d/. With[monorepo] lockfile = truein the root config, subproject configs pair with the root lockfiles. - Every committed mise config is checked, in any directory.
.git,node_modules,vendorand hidden directories other than.configand.miseare skipped. - List a fixture directory in
exemptPaths(for exampleexamples/**) 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.
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).
# mise.toml: ❌ no mise.lock committed next to it[tools]terraform = "1.9.8"# 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.tomlwithmise.lock,mise.<env>.tomlwithmise.<env>.lock, aconf.d/fragment with themise.lockof the directory holdingconf.d/. With[monorepo] lockfile = truein the root config, subproject configs pair with the root lockfiles. - Every committed mise config is checked, in any directory.
.git,node_modules,vendorand hidden directories other than.configand.miseare skipped. - List a fixture directory in
exemptPaths(for exampleexamples/**) 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.