ci: the node24 leaf is one layer, so the runner-image builder accepts it #24
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/node24-one-layer"
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?
Follow-up to #23 (CVE-2026-111497). The runner-image builder (
scripts/forgejo-runner-imagein noel/infra) refused #23's leaf: "built image is not the base plus one layer from the pinned source". It accepts only the base plus exactly one layer.Cause
#23's leaf had a separate check-only
RUNafter theENV PATH, and it produced a second layer in two ways:/tmp/node-compile-cache, 442 kB in the first build./tmpon a tmpfs, BuildKit with the containerd image store still emits a layer for aRUNthat writes nothing. That layer is the standard empty diff,sha256:5f70bf18….Change
RUN, withPATHset to the value theENVthen records.RUNmounts a tmpfs at/tmp, so npm's cache leaves no bytes.ENV PATHmoves after theRUN.Checks
scripts/forgejo-runner-image dry-run(noel/infra main da7046d8) on this commit, against the localsha256:1f0ae8ac…parent:--network none,--no-cache)sha256:f85418d9…/sha256:a517aa48…verify-installed-system-hz-node24.py, uid 1000, read-only root, no network)After merge, the image is rebuilt from the merge commit, then promoted and adopted through the owner-approved steps.