From fdd9a255a5aa0759d53c80efe91e061b4f175494 Mon Sep 17 00:00:00 2001 From: chen21019 <19357113+chen21019@users.noreply.github.com> Date: Fri, 13 Nov 2026 08:11:52 +0800 Subject: [PATCH 1/2] Rebuild govc with the checksum-pinned Go 1.27.4 toolchain --- .github/workflows/release.yml | 8 ++++---- .github/workflows/repository-integrity.yml | 8 ++++---- ORIGIN.md | 2 +- scripts/package | 7 ++++++- sources.lock.env | 4 ++-- 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04293ce..9ec90af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,11 +40,11 @@ jobs: shell: bash run: | set -euo pipefail - archive="$RUNNER_TEMP/go1.27.3.linux-amd64.tar.gz" + archive="$RUNNER_TEMP/go1.27.4.linux-amd64.tar.gz" curl --proto '=https' --tlsv1.2 --fail --silent --show-error --location \ - --output "$archive" https://go.dev/dl/go1.27.3.linux-amd64.tar.gz + --output "$archive" https://go.dev/dl/go1.27.4.linux-amd64.tar.gz printf '%s %s\n' \ - 65efbc80fdc1fa2cd2631cad5b481777a68e8725f34e89f50fc6ac714e379b40 \ + 7226736c2339719cda28fbf3a54d71aa63bcefe376e98cef00034268dab24840 \ "$archive" | sha256sum -c - tar -C "$RUNNER_TEMP" -xzf "$archive" printf '%s\n' "$RUNNER_TEMP/go/bin" >> "$GITHUB_PATH" @@ -75,7 +75,7 @@ jobs: artifact="dist/vsphere-cli-bundle-${version}-linux-amd64.tar.xz" gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag \ --title "vSphere CLI Bundle ${version}" \ - --notes 'Deterministic Go 1.27.3 build from the pinned govmomi source coordinate, with pure numeric artifact versioning and checksummed provenance.' \ + --notes 'Deterministic Go 1.27.4 build from the pinned govmomi source coordinate, with pure numeric artifact versioning and checksummed provenance.' \ "$artifact" dist/SHA256SUMS - name: Clean generated files diff --git a/.github/workflows/repository-integrity.yml b/.github/workflows/repository-integrity.yml index f478e5d..089187c 100644 --- a/.github/workflows/repository-integrity.yml +++ b/.github/workflows/repository-integrity.yml @@ -27,12 +27,12 @@ jobs: shell: bash run: | set -euo pipefail - archive="$RUNNER_TEMP/go1.27.3.linux-amd64.tar.gz" + archive="$RUNNER_TEMP/go1.27.4.linux-amd64.tar.gz" curl --proto '=https' --tlsv1.2 --fail --silent --show-error --location \ - --output "$archive" https://go.dev/dl/go1.27.3.linux-amd64.tar.gz - printf '%s %s\n' 65efbc80fdc1fa2cd2631cad5b481777a68e8725f34e89f50fc6ac714e379b40 "$archive" | sha256sum -c - + --output "$archive" https://go.dev/dl/go1.27.4.linux-amd64.tar.gz + printf '%s %s\n' 7226736c2339719cda28fbf3a54d71aa63bcefe376e98cef00034268dab24840 "$archive" | sha256sum -c - tar -C "$RUNNER_TEMP" -xzf "$archive" - test "$("$RUNNER_TEMP/go/bin/go" env GOVERSION)" = go1.27.3 + test "$("$RUNNER_TEMP/go/bin/go" env GOVERSION)" = go1.27.4 printf '%s\n' "$RUNNER_TEMP/go/bin" >> "$GITHUB_PATH" - name: Verify the locked reproducible bundle and record build information shell: bash diff --git a/ORIGIN.md b/ORIGIN.md index 25a1b73..78108de 100644 --- a/ORIGIN.md +++ b/ORIGIN.md @@ -13,6 +13,6 @@ The packaged `govc` executable is built from: - License: Apache-2.0 - License file: `LICENSE.txt` -The pinned commit is an exact source coordinate, not represented as a direct descendant of the reference tag. The packaging recipe preserves every upstream Go source file and applies only an explicit `govc/go.mod` requirement plus official `govc/go.sum` checksum entries for `golang.org/x/text v0.41.0`, addressing [GO-2026-6629](https://pkg.go.dev/vuln/GO-2026-6629). It verifies the complete two-file change allowlist, exact dependency version and module checksums, and the upstream license SHA-256 before building pure numeric version `0.55.4` with Go 1.27.3. +The pinned commit is an exact source coordinate, not represented as a direct descendant of the reference tag. The packaging recipe preserves every upstream Go source file and applies only an explicit `govc/go.mod` requirement plus official `govc/go.sum` checksum entries for `golang.org/x/text v0.41.0`, addressing [GO-2026-6629](https://pkg.go.dev/vuln/GO-2026-6629). It verifies the complete two-file change allowlist, exact dependency version and module checksums, and the upstream license SHA-256 before building pure numeric version `0.55.5` with Go 1.27.4. The root MIT license applies only to PastureStack-authored packaging code and documentation. The upstream copyright and Apache-2.0 terms remain intact and are reproduced in every release archive. diff --git a/scripts/package b/scripts/package index 159ec4f..630c219 100755 --- a/scripts/package +++ b/scripts/package @@ -105,7 +105,12 @@ if [ "$discovery" = 1 ]; then printf 'Discovery only: no release archive produced\n' exit 0 fi -printf '%s %s\n' "$GOVC_BINARY_SHA256" "$stage_dir/govc" | sha256sum -c - +actual_sha256=$(sha256sum "$stage_dir/govc") +actual_sha256=${actual_sha256%% *} +if [ "$actual_sha256" != "$GOVC_BINARY_SHA256" ]; then + printf 'govc SHA-256 mismatch: expected %s, built %s\n' "$GOVC_BINARY_SHA256" "$actual_sha256" >&2 + exit 1 +fi { printf 'PastureStack packaging recipe\n' diff --git a/sources.lock.env b/sources.lock.env index 5a7cfd6..b4894e7 100644 --- a/sources.lock.env +++ b/sources.lock.env @@ -1,4 +1,4 @@ -GOVMOMI_VERSION=0.55.4 +GOVMOMI_VERSION=0.55.5 GOVMOMI_REFERENCE_TAG=v0.55.1 GOVMOMI_COMMIT=a668d9c60399552ea96782b8751c956720a0b8fb GOVMOMI_SHORT_COMMIT=a668d9c60399 @@ -11,5 +11,5 @@ GOVMOMI_X_TEXT_VERSION=0.41.0 GOVMOMI_X_TEXT_SUM=h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= GOVMOMI_X_TEXT_GO_MOD_SUM=h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= SOURCE_DATE_EPOCH=1783432935 -BUILD_GO_VERSION=1.27.3 +BUILD_GO_VERSION=1.27.4 GOVC_BINARY_SHA256=8f43086cc85de88a93e510efe9375a1ff6e265ca12e764c1fc8ae4c35be69ded From b18cd61cc3769b2041e6adeb468e166228f29fa2 Mon Sep 17 00:00:00 2001 From: chen21019 <19357113+chen21019@users.noreply.github.com> Date: Fri, 13 Nov 2026 08:15:40 +0800 Subject: [PATCH 2/2] Lock the verified govc binary SHA-256 --- sources.lock.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources.lock.env b/sources.lock.env index b4894e7..a525a7a 100644 --- a/sources.lock.env +++ b/sources.lock.env @@ -12,4 +12,4 @@ GOVMOMI_X_TEXT_SUM=h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= GOVMOMI_X_TEXT_GO_MOD_SUM=h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= SOURCE_DATE_EPOCH=1783432935 BUILD_GO_VERSION=1.27.4 -GOVC_BINARY_SHA256=8f43086cc85de88a93e510efe9375a1ff6e265ca12e764c1fc8ae4c35be69ded +GOVC_BINARY_SHA256=7319102b997d19d3a1571b36485c52fd881a23338dfa0410546719b6d4719784