Skip to content

docs,ci: consumer-side reproducible-build verification (#145) - #233

Merged
Chris-Wolfgang merged 4 commits into
vNextfrom
ci/reproducible-verify
Jul 24, 2026
Merged

docs,ci: consumer-side reproducible-build verification (#145)#233
Chris-Wolfgang merged 4 commits into
vNextfrom
ci/reproducible-verify

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Makes the deterministic-build claim from #135 independently verifiable — the consumer-side flip.

What's added

  • docs/REPRODUCIBLE-BUILD.md — the full procedure: match the reference environment, clone at the tag, rebuild with the documented -p:ContinuousIntegrationBuild=true command, sha256sum and compare against the published manifest, file a discrepancy, and publish a third-party attestation (Reproducible Builds project / vouchsafe.io).
  • scripts/reproducible-manifest.{sh,py} — build each shipped assembly deterministically and emit reproducible-build-manifest.json (per-assembly SHA-256 + reference OS/SDK + the exact build command). The .py is split out so the piped hashes stay on stdin (a heredoc-inlined script collides with the interpreter's own stdin).
  • release.yaml — the update-release-artifacts job now generates the manifest (on ubuntu/net10.0, matching [Maintenance] CI/CD: Build reproducibility verification (deterministic builds across runners) #135's deterministic build — not the Windows packing build, so the hashes are what a third party reproduces) and attaches it to the GitHub Release.
  • README — a "Verify the build" section linking the procedure.

Verified locally

The generator builds both projects with the CI flag and emits valid 64-char SHA-256 hashes for both assemblies, sorted, well-formed JSON. (Same-environment reproducibility itself is already gated by #135.)

Design note

The manifest is generated with the deterministic build command (ubuntu, ContinuousIntegrationBuild=true) rather than the release's Windows pack build, because that's the environment the doc tells third parties to reproduce — cross-OS byte-identity isn't guaranteed, so the manifest records the reference OS + SDK to match.

Closes #145 when the vNext cycle merges to main.

🤖 Generated with Claude Code

Makes the deterministic-build claim (#135) independently verifiable:

- docs/REPRODUCIBLE-BUILD.md: how a third party clones at the tag, rebuilds
  with the documented ContinuousIntegrationBuild command, compares sha256s
  against the published manifest, files a discrepancy, and publishes an
  attestation (Reproducible Builds project / vouchsafe.io).
- scripts/reproducible-manifest.{sh,py}: build each shipped assembly
  deterministically and emit reproducible-build-manifest.json (assembly hashes
  + reference OS/SDK). Verified locally: valid 64-char SHAs for both assemblies.
- release.yaml: the update-release-artifacts job now generates the manifest
  (matching #135's ubuntu/net10.0 deterministic build) and attaches it to the
  GitHub Release.
- README: a 'Verify the build' section linking the procedure.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 22, 2026 17:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread .github/workflows/release.yaml Fixed
Chris-Wolfgang and others added 3 commits July 22, 2026 20:40
Addresses the zizmor template-injection finding on #233: the manifest step
interpolated ${{ github.event.release.tag_name }} directly into the run block.
Pass it through an env var instead so a crafted tag name can't inject shell.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants