From afce55703aa76084f5a774a86cbd6cdfb11c259e Mon Sep 17 00:00:00 2001 From: "Mark E. DeYoung" <1854350+mark-e-deyoung@users.noreply.github.com> Date: Mon, 30 Nov 2026 19:11:53 +0100 Subject: [PATCH] Preserve exact public source artifact in verified bounded transport chunks --- ...source-snapshot-chunk-custody-20261130.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/arm64-source-snapshot-chunk-custody-20261130.yml diff --git a/.github/workflows/arm64-source-snapshot-chunk-custody-20261130.yml b/.github/workflows/arm64-source-snapshot-chunk-custody-20261130.yml new file mode 100644 index 000000000..53410aced --- /dev/null +++ b/.github/workflows/arm64-source-snapshot-chunk-custody-20261130.yml @@ -0,0 +1,60 @@ +name: Public source snapshot chunk custody +on: + pull_request: + paths: + - '.github/workflows/arm64-source-snapshot-chunk-custody-20261130.yml' +permissions: + contents: read + actions: read +jobs: + split: + runs-on: ubuntu-24.04 + timeout-minutes: 8 + steps: + - name: Materialize exact prior archive as bounded chunks + env: + GH_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + mkdir -p chunks + curl -fLsS --retry 2 -H "Authorization: Bearer $GH_TOKEN" "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/artifacts/15407646555/zip" -o source.zip + echo '93bd5a3a10bd05816242a1a73edb12eff6d8bdb9e50f25b8255bafe013fa7834 source.zip' | sha256sum -c + test "$(stat -c %s source.zip)" = 243999992 + split -b 64M -d -a 2 source.zip chunks/source.zip.part- + test "$(find chunks -name 'source.zip.part-*' | wc -l)" = 4 + sha256sum chunks/source.zip.part-* > chunks/parts.sha256 + cat chunks/source.zip.part-* | sha256sum > chunks/reassembled.sha256 + grep -F '93bd5a3a10bd05816242a1a73edb12eff6d8bdb9e50f25b8255bafe013fa7834' chunks/reassembled.sha256 + printf '%s\n' 'Concatenate source.zip.part-00 through source.zip.part-03 in order after extracting each transport ZIP. Compare SHA-256 with reassembled.sha256. This is the exact prior artifact ZIP, not a new source revision.' > chunks/README.txt + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: source-snapshot-part-00 + path: chunks/source.zip.part-00 + compression-level: 0 + if-no-files-found: error + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: source-snapshot-part-01 + path: chunks/source.zip.part-01 + compression-level: 0 + if-no-files-found: error + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: source-snapshot-part-02 + path: chunks/source.zip.part-02 + compression-level: 0 + if-no-files-found: error + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: source-snapshot-part-03 + path: chunks/source.zip.part-03 + compression-level: 0 + if-no-files-found: error + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: source-snapshot-chunk-receipt + path: | + chunks/README.txt + chunks/parts.sha256 + chunks/reassembled.sha256 + if-no-files-found: error