Pin both base images by digest and assert the Gleam resolve carries its hashes (images-to-forge P1e) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pluto/p1-pin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P1e of the images-to-forge package (macula-io/martha#601), under DECIDED 2026-11-22 "images should move to forgejo".
What it pins
Containerfile: bothFROMs by@sha256at theFROMline. The tag stays beside each digest as a comment; the ARGs that carried the tag are gone.scripts/assert_manifest_has_hashes.sh, run from.github/workflows/ci.ymlaftergleam deps downloadand before Lint: every package the Gleam resolve names must carry the hash published with it, and the check fails when the manifest names no package at all.Why
A tag can be moved, so a build that names one builds other bytes later. A resolve that names package names and versions without their hashes pins a name, not bytes, and the signer that builds releases refuses a tree on exactly that.
Proof
The checker passes the real manifest and refuses a stripped hash, an empty manifest and a missing one (25 of 25 cases in the review).
The branch also merges
main(which carries this repository's workflow port) so the pin fast-forwards onto it.ci.ymlauto-merged the port's guards and this branch's step; both sides were read back after the merge.actions/checkout@v4 is a JavaScript action, and this job runs in its own container — a macula-ci image, which carries no node — so the action died at step 0 with exitcode 127 ("node": executable file not found). The replacement step is BYTE-IDENTICAL in every repository on the forge: the token reaches git through GIT_CONFIG_COUNT/GIT_CONFIG_KEY_0/GIT_CONFIG_VALUE_0 (http.extraHeader) in the environment, never through a URL or on a command line; the run's own sha is fetched and checked out; and the step refuses any tree that is not that sha. It is also the candidate for option B, one script baked into macula-ci-images (a follow-up there, not tonight). This follows the no-marketplace CI rule (DECIDED 2026-11-22 "do both").View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.