Repository navigation
Attest gh-aw release assets before publishing - #79876
Conversation
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Checksum verification can succeed with missing, truncated, or duplicate entries, allowing binaries to be attested and published even though the shell installer rejects them.
1 open issue
What changed in this PR
Adds a pre-publication integrity and provenance gate to gh-aw’s custom release pipeline, preserving asset names, release URLs, and installer behavior.
Changes:
- Adds checksum verification and SHA-pinned build-provenance attestation before release creation.
- Preserves the custom build, Defender scan, and manual approval gate.
- Regenerates the compiled workflow and updates release guidance and build-script comments.
Live attestation remains unverified; no release was dispatched.
| File | Description |
|---|---|
scripts/build-release.sh |
Clarifies build-only behavior and native asset naming; comments only. |
.github/workflows/release.md |
Adds checksum verification and provenance attestation before publishing. |
.github/workflows/release.lock.yml |
Updates generated steps, action metadata, and workflow hashes. |
.github/aw/release-workflow.md |
Documents checksum verification and attestation before publishing. |
Review effort: Max (adaptive)
Co-authored-by: Copilot App <[email protected]>
|
/matt |
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
Co-authored-by: Copilot App <[email protected]>
|
Re: the |
|
Re: the reviewer status notification: This is a progress update, not a review finding, so no code change is needed for this comment. |
Correction to the review bodyTwo statements in the submitted review were wrong. The rest of the review still stands.
The set-equality check in the inline comment covers all three cases. @copilot please address the review comments above.
|
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /grill-with-docs. Requesting changes because the checksum verification does not enforce the set of files that gets attested and published.
📋 Key Themes and Highlights
Key Themes
- Integrity gap:
sha256sum --check checksums.txt(without--strict) exits 0 whendist/has a file the manifest does not list. It also passes when the manifest lists a file that is absent, or has a duplicate entry (the duplicate-entry case exited 1 in my test, so it depends on the checksum form). A set-equality check closes this, as shown in the inline comment. - Test coverage: the new verify and attest steps are inline YAML and are not covered by
actions/setup/sh/release_integrity_test.sh.
Positive Highlights
- ✅ The attest step is pinned to
4d101475...(v4.2.2), and the SHA matches the tag. - ✅ Lock file matches the source change, and the release job holds
id-token: writeandattestations: write. - ✅ Attestation runs after the artifact round trip and before
gh release create, and it coversdist/*, the same set that gets uploaded. The SBOM files are workflow artifacts only, so they are not in scope. - ✅ The
release-workflow.mddocs row now matches the new ordering.
Open Questions
- Live attestation has not been exercised. The PR body says the broader installer suite stopped on an authenticated-retry assertion in the local harness.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
| name: release-binaries-${{ needs.config.outputs.release_tag }} | ||
| path: dist/ | ||
|
|
||
| - name: Verify release asset checksums |
There was a problem hiding this comment.
[/tdd] The verify step is inline YAML, so none of the cases it must catch are tested. actions/setup/sh/release_integrity_test.sh already covers release integrity helpers. Move this check into a small script there and add failing cases for an unlisted file in dist/, a manifest entry for an absent file, a duplicated entry, and a tampered file. The good case should pass.
💡 Verified check
I confirmed this set-equality check passes the good case and fails all four bad cases. Plain sha256sum --strict --check exits 0 on an unlisted file.
sha256sum --strict --check checksums.txt
expected=$(awk '{print $2}' checksums.txt | sort)
actual=$(ls -A | grep -v '^checksums.txt$' | sort)
test "$expected" = "$actual"
test -z "$(awk '{print $2}' checksums.txt | sort | uniq -d)"@copilot please address this.
Co-authored-by: Copilot App <[email protected]>
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "10b80890883173b916a6431139f4e0194334c355",
"kind": "requested",
"schema_version": "1",
"state": "99cbfa0fd04be5b9a9272466566d1c66dece3a3b9028c77caf84539d88cdfa9f",
"work": [
"f6843963170dc76b5f602dc712eacd2c8d563bf3d65e9b2ceef29208cbb44480"
],
"workflow": "pr-sous-chef"
}
|

Summary
The existing build produces the native binary names GitHub CLI expects, but the published
v1.2.2Linux AMD64 asset had a release attestation without build provenance.checksums.txtand generate signed build provenance for the exactdist/*assets before upload. If either step fails, the release is not published.cli/gh-extension-precompile, while preserving the custom build, Defender scan, and manual approval gate. Release URLs, binary names, and the checksum format stay unchanged, and shell installers do not need attestation support.Validation
make recompile, Actionlint, andmake agent-report-progresspassed. The targeted offline zizmor comparison found the same seven low-severity findings as the baseline; Docker-based scanners were unavailable.v1.2.2release. Both thev1.2.2and current installers accepted release-format Linux and Windows fixtures. The broader installer suite stopped at an authenticated-retry assertion in the local harness.