Pin both base images by digest and assert the 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, so a reader can see which tag the digest was taken at; the ARGs that carried the tag are gone.scripts/assert_mix_lock_has_hashes.sh, run from.github/workflows/ci.ymlaftermix deps.get: every:hexentry in the resolve must carry the checksum hex published with it, and the check fails when the lock names no hex entry at all.Why
A tag can be moved, so a build that names one builds other bytes later. A lock written before Elixir 1.14 stops at
"hexpm"and pins a name and a version, not bytes, and the signer that builds releases refuses a tree on exactly that.Proof
The checker passes a real lock 39/39 and refuses a stripped checksum, an empty lock and a missing one.
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). The rest of the job loses its marketplace actions under the same rule: the two actions/cache steps (the instance runner keeps no cache for a plain-shell step) and actions/upload-artifact (its only consumer is the image job, which runs on github.com only). 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.