Skip to main content

CI/CD provider

ISSUE-1004HighPackage Managers and Lockfiles

mise: a tool is locked without a checksum

Control:CTRL-1001mise-en-place

šŸ“‹ What is this?

A platform entry of mise.lock records a download URL but no checksum.

āš ļø Impact

mise cannot verify that the bytes it downloads are the ones that were locked, so a release asset replaced upstream (a re-published GitHub release, a compromised mirror) is installed without notice.

šŸ”§ How to fix

Run mise lock so mise records the checksum, and prefer a backend that publishes checksums (aqua, core tools). If the source publishes none, list the tool in exemptPackages once you have reviewed it.

āœ— BeforeAny file served at that URL is installed.
# mise.lock: āŒ url but no checksum
[[tools."github:my-org/cli"]]
version = "2.0.0"
backend = "github:my-org/cli"
[tools."github:my-org/cli".platforms.linux-x64]
url = "https://github.com/my-org/cli/releases/download/v2.0.0/cli-linux-x64.tar.gz"
āœ“ Aftermise rejects a download whose checksum differs.
# mise.lock: āœ… url and checksum
[tools."github:my-org/cli".platforms.linux-x64]
url = "https://github.com/my-org/cli/releases/download/v2.0.0/cli-linux-x64.tar.gz"
checksum = "sha256:4f2d…"

šŸ’” Tips

  • The check runs while requireChecksums is on, which is the default.
  • A lock entry with no URL and no checksum at all is ISSUE-1018.

āš™ļø Configure this control

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