From d612bb65217b48a6747c494a160e89ee3ca007b4 Mon Sep 17 00:00:00 2001 From: Noah <2+noah@noreply.gitea.bluefla.re> Date: Wed, 4 Nov 2026 15:25:38 -0600 Subject: [PATCH] make-afw: emit SHA256SUMS for the built bundle so it cannot drift The producer verified the bundle but never wrote the SHA256SUMS release artifact, so a stale file from a previous build could describe a different bundle. Write it (overwrite) from the finished file. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01B1W6qHxYpv7yf7Ah57g4rQ --- ci/make-afw.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/make-afw.sh b/ci/make-afw.sh index dcec605..dbdf5b3 100755 --- a/ci/make-afw.sh +++ b/ci/make-afw.sh @@ -139,4 +139,8 @@ fi python3 "$ROOT/ci/check-afw.py" "$OUTPUT/$NAME" "${CHECK[@]}" +# Emit a SHA256SUMS covering exactly this bundle, so the release artifact can +# never drift from the file it describes. Overwrite, do not append. +( cd "$OUTPUT" && sha256sum "$NAME" > SHA256SUMS ) + printf '%s\n' "$OUTPUT/$NAME"