From cdc53534c2766295088efc99a29e8ad8156a0efa Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 16:13:05 +0000 Subject: [PATCH 1/3] ci: add dispatch-only hosted installer check for 0.1.6 Run the official proofline.sh installer into a disposable home on the publisher's ubuntu-24.04 image, then read back the installed version, installer digest, pinned archive digest and binary digest. The job has no permissions, secrets or environment and never builds or publishes. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015eE1s9qzoqUzY8pMe46tk5 --- .github/workflows/hosted-install.yml | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/hosted-install.yml diff --git a/.github/workflows/hosted-install.yml b/.github/workflows/hosted-install.yml new file mode 100644 index 0000000..dd7d413 --- /dev/null +++ b/.github/workflows/hosted-install.yml @@ -0,0 +1,63 @@ +name: Hosted install check +# Runs the official hosted installer into a disposable home on the publisher's +# runner image and reads back the installed version and digests. It never +# builds, publishes or writes release objects; it only reads proofline.sh, +# the same origin the publish job already compares against. +on: + workflow_dispatch: +permissions: {} +concurrency: + group: hosted-install + cancel-in-progress: false +jobs: + install: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + env: + VERSION: 0.1.6 + TARGET: x86_64-unknown-linux-musl + # Digest of the v0.1.6 archive recorded by Release run 40458824281. + ARCHIVE_SHA256: 9bc64427ab03009510d79d9b97983c3910e5f6971a3ce3f4a4cc004ab756b2b5 + steps: + - run: | + set -euo pipefail + fetch() { + curl --proto '=https' --tlsv1.2 --fail --silent --show-error --location \ + --connect-timeout 15 --max-time 120 "$@" + } + work=$(mktemp -d "$RUNNER_TEMP/hosted-install.XXXXXX") + home="$work/home" + prefix="$home/.local/bin" + mkdir -p "$home" "$work/expected" + + # The installer follows latest, so refuse unless latest is the pinned version. + latest=$(fetch https://proofline.sh/cli/latest) + [ "$latest" = "$VERSION" ] || { echo "latest is $latest, not $VERSION" >&2; exit 1; } + + name="proofline-$TARGET.tar.gz" + fetch "https://proofline.sh/cli/download/$VERSION/$name" -o "$work/$name" + echo "$ARCHIVE_SHA256 $work/$name" | sha256sum --check --strict + [ "$(tar -tzf "$work/$name")" = proofline ] + tar -xzf "$work/$name" -C "$work/expected" proofline + + fetch https://proofline.sh/cli -o "$work/install.sh" + installer_sha256=$(sha256sum "$work/install.sh" | cut -d ' ' -f 1) + env -i PATH=/usr/bin:/bin HOME="$home" PROOFLINE_INSTALL_DIR="$prefix" \ + sh "$work/install.sh" + + [ -f "$prefix/proofline" ] && [ ! -L "$prefix/proofline" ] + installed=$(PROOFLINE_NO_UPDATE_CHECK=1 HOME="$home" "$prefix/proofline" --version) + [ "$installed" = "proofline $VERSION" ] || { echo "installed $installed" >&2; exit 1; } + cmp "$work/expected/proofline" "$prefix/proofline" + binary_sha256=$(sha256sum "$prefix/proofline" | cut -d ' ' -f 1) + + { + echo "| Field | Value |" + echo "| --- | --- |" + echo "| Workflow commit | \`$GITHUB_SHA\` |" + echo "| Installed version | \`$installed\` |" + echo "| Installer sha256 | \`$installer_sha256\` |" + echo "| Archive | \`https://proofline.sh/cli/download/$VERSION/$name\` |" + echo "| Archive sha256 | \`$ARCHIVE_SHA256\` |" + echo "| Binary sha256 | \`$binary_sha256\` |" + } | tee -a "$GITHUB_STEP_SUMMARY" From 4ea37d5852c7a4552c696dbe1b60a67b45e9e457 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 16:40:29 +0000 Subject: [PATCH 2/3] ci: bind the hosted installer to its reviewed digest and pin 0.1.6 Refuse installer bytes whose SHA-256 differs from the reviewed install.sh before running them, select 0.1.6 with PROOFLINE_VERSION instead of requiring latest, and install into an explicit disposable PROOFLINE_INSTALL_DIR without overriding HOME. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015eE1s9qzoqUzY8pMe46tk5 --- .github/workflows/hosted-install.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/hosted-install.yml b/.github/workflows/hosted-install.yml index dd7d413..184d62d 100644 --- a/.github/workflows/hosted-install.yml +++ b/.github/workflows/hosted-install.yml @@ -1,5 +1,5 @@ name: Hosted install check -# Runs the official hosted installer into a disposable home on the publisher's +# Runs the reviewed hosted installer into a disposable prefix on the publisher's # runner image and reads back the installed version and digests. It never # builds, publishes or writes release objects; it only reads proofline.sh, # the same origin the publish job already compares against. @@ -18,6 +18,8 @@ jobs: TARGET: x86_64-unknown-linux-musl # Digest of the v0.1.6 archive recorded by Release run 40458824281. ARCHIVE_SHA256: 9bc64427ab03009510d79d9b97983c3910e5f6971a3ce3f4a4cc004ab756b2b5 + # Reviewed installer: proofline 0421e803, apps/marketing/public/cli/install.sh. + INSTALLER_SHA256: da5e9d49eaa193a9f98d002b799c7b432129ac1f9c746295abf19ca1f613f567 steps: - run: | set -euo pipefail @@ -26,13 +28,8 @@ jobs: --connect-timeout 15 --max-time 120 "$@" } work=$(mktemp -d "$RUNNER_TEMP/hosted-install.XXXXXX") - home="$work/home" - prefix="$home/.local/bin" - mkdir -p "$home" "$work/expected" - - # The installer follows latest, so refuse unless latest is the pinned version. - latest=$(fetch https://proofline.sh/cli/latest) - [ "$latest" = "$VERSION" ] || { echo "latest is $latest, not $VERSION" >&2; exit 1; } + prefix="$work/bin" + mkdir -p "$prefix" "$work/expected" name="proofline-$TARGET.tar.gz" fetch "https://proofline.sh/cli/download/$VERSION/$name" -o "$work/$name" @@ -40,13 +37,13 @@ jobs: [ "$(tar -tzf "$work/$name")" = proofline ] tar -xzf "$work/$name" -C "$work/expected" proofline + # Refuse installer bytes that differ from the reviewed source before running them. fetch https://proofline.sh/cli -o "$work/install.sh" - installer_sha256=$(sha256sum "$work/install.sh" | cut -d ' ' -f 1) - env -i PATH=/usr/bin:/bin HOME="$home" PROOFLINE_INSTALL_DIR="$prefix" \ - sh "$work/install.sh" + echo "$INSTALLER_SHA256 $work/install.sh" | sha256sum --check --strict + PROOFLINE_VERSION="$VERSION" PROOFLINE_INSTALL_DIR="$prefix" sh "$work/install.sh" [ -f "$prefix/proofline" ] && [ ! -L "$prefix/proofline" ] - installed=$(PROOFLINE_NO_UPDATE_CHECK=1 HOME="$home" "$prefix/proofline" --version) + installed=$(PROOFLINE_NO_UPDATE_CHECK=1 "$prefix/proofline" --version) [ "$installed" = "proofline $VERSION" ] || { echo "installed $installed" >&2; exit 1; } cmp "$work/expected/proofline" "$prefix/proofline" binary_sha256=$(sha256sum "$prefix/proofline" | cut -d ' ' -f 1) @@ -56,7 +53,7 @@ jobs: echo "| --- | --- |" echo "| Workflow commit | \`$GITHUB_SHA\` |" echo "| Installed version | \`$installed\` |" - echo "| Installer sha256 | \`$installer_sha256\` |" + echo "| Installer sha256 | \`$INSTALLER_SHA256\` |" echo "| Archive | \`https://proofline.sh/cli/download/$VERSION/$name\` |" echo "| Archive sha256 | \`$ARCHIVE_SHA256\` |" echo "| Binary sha256 | \`$binary_sha256\` |" From 6cf5eeac44131b944f6a98d4772ff45b9e3cd52d Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 16:49:22 +0000 Subject: [PATCH 3/3] ci: disable update discovery during the hosted installer run The installer runs the newly installed binary's --version, which starts background update discovery before argument parsing. Pass PROOFLINE_NO_UPDATE_CHECK=1 to the installer so it inherits the flag and nothing writes update state or makes discovery requests outside the disposable prefix. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015eE1s9qzoqUzY8pMe46tk5 --- .github/workflows/hosted-install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hosted-install.yml b/.github/workflows/hosted-install.yml index 184d62d..a5882f4 100644 --- a/.github/workflows/hosted-install.yml +++ b/.github/workflows/hosted-install.yml @@ -40,7 +40,8 @@ jobs: # Refuse installer bytes that differ from the reviewed source before running them. fetch https://proofline.sh/cli -o "$work/install.sh" echo "$INSTALLER_SHA256 $work/install.sh" | sha256sum --check --strict - PROOFLINE_VERSION="$VERSION" PROOFLINE_INSTALL_DIR="$prefix" sh "$work/install.sh" + PROOFLINE_NO_UPDATE_CHECK=1 PROOFLINE_VERSION="$VERSION" PROOFLINE_INSTALL_DIR="$prefix" \ + sh "$work/install.sh" [ -f "$prefix/proofline" ] && [ ! -L "$prefix/proofline" ] installed=$(PROOFLINE_NO_UPDATE_CHECK=1 "$prefix/proofline" --version)