- Issues
- ISSUE-1004
CI/CD provider
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.
# 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"# 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
requireChecksumsis 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.
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.
# 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"# 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
requireChecksumsis 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.