Skip to content

feat: publish a sha256 checksums file with each release (#623) - #657

Merged
tianzhou merged 2 commits into
mainfrom
release-checksums
Oct 15, 2026
Merged

tianzhou merged 2 commits into
mainfrom
release-checksums

Conversation

@tianzhou

Copy link
Copy Markdown
Contributor

Closes #623

What

  • Add a Generate checksums step to the release job that runs sha256sum */* over the downloaded artifacts and writes pgschema-<version>-checksums.txt with one <sha256> <asset name> line per binary, .deb and .rpm, then attaches it to the GitHub release.
  • Document a Verify Downloads section in docs/installation.mdx showing sha256sum -c --ignore-missing (Linux) and shasum -a 256 -c --ignore-missing (macOS).
  • Fix the Linux pre-built binary URLs in the install docs, which pointed at pgschema-linux-amd64 instead of the actual asset name pgschema-<version>-linux-amd64.

Why

Version managers (e.g. proto) verify a download against a sha256sum-format checksums file fetched from the release. Without one they install pgschema unverified. This is the same format golangci-lint and GoReleaser-based projects publish.

Verification

Ran the step against a mock of the binaries/<artifact>/<asset> layout the workflow downloads, using the real v1.13.2 asset names. The file lists all eight assets with the directory prefix stripped. From a directory holding the flat release assets, shasum -a 256 -c --ignore-missing passes on untouched assets and reports FAILED with a non-zero exit when an asset is modified.

🤖 Generated with Claude Code

Add a "Generate checksums" step to the release job that hashes every
downloaded artifact (binaries, .deb, .rpm) and writes
pgschema-<version>-checksums.txt in sha256sum format, then attach it to
the GitHub release. Version managers such as proto can point at it to
verify prebuilt binaries.

Document how to verify a download in docs/installation.mdx, and fix the
Linux pre-built binary URLs there, which omitted the version from the
asset name.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:52

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.

🟢 Approval recommended

The checksum workflow has supporting verification evidence, with only a minor documentation clarification remaining.

1 open finding
What changed in this PR

Adds release checksum assets so users and version managers can verify pgschema downloads, addressing #623.

Changes:

  • Generate and publish SHA-256 checksums for binaries and packages.
  • Document download verification on Linux and macOS.
  • Correct Linux binary asset URLs.
File Description
docs/​installation.mdx Adds verification instructions and fixes Linux download URLs.
.github/​workflows/​release.yml Generates and uploads the release checksums file.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/installation.mdx
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds a SHA-256 checksums file to each release and documents how to check downloads.

  • Each release includes a checksum file for its downloadable assets.
  • Linux download examples use the versioned release asset names.

Reviews (2) · Last reviewed commit: "docs: note both version placeholders for..." · Reviewed by Greptile

Comment thread docs/installation.mdx
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

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.

🟢 Approval recommended

The focused changes have no unresolved findings, and reported checks confirm manifest correctness and corruption detection.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@tianzhou tianzhou closed this Oct 15, 2026
@tianzhou tianzhou reopened this Oct 15, 2026
@tianzhou
tianzhou merged commit 3faa02d into main Oct 15, 2026
4 checks passed
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.

Publish a checksums file with each release

2 participants