Repository navigation
feat(attestation): support direct digest input for verify and download commands - #12463
Closed
suzuki-shunsuke wants to merge 9 commits into
Closed
suzuki-shunsuke wants to merge 9 commits into
suzuki-shunsuke wants to merge 9 commits into
Conversation
Add support for accepting pre-computed checksums (sha256:<digest> or sha512:<digest>) as input to `gh attestation verify`, similar to `cosign verify-blob`. This allows verification without downloading large artifacts when the digest is already known. Co-Authored-By: Claude Opus 4.5 <[email protected]>
suzuki-shunsuke
temporarily deployed
to
cli-automation
January 11, 2026 00:39 — with
GitHub Actions
Inactive
suzuki-shunsuke
marked this pull request as ready for review
January 11, 2026 00:41
suzuki-shunsuke
temporarily deployed
to
cli-automation
January 11, 2026 00:41 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for accepting pre-computed checksums (sha256: or sha512:) as direct input to the gh attestation verify command, similar to cosign's verify-blob functionality. This allows users to verify artifacts without downloading them when the digest is already known.
Changes:
- Added support for digest reference format (sha256: and sha512:) in the verify command
- Implemented parsing and validation logic for digest references
- Updated logging to distinguish between loaded and provided digests
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| pkg/cmd/attestation/verify/verify.go | Updated command usage documentation and added conditional logging for digest-only input |
| pkg/cmd/attestation/artifact/artifact.go | Added digestArtifactType, implemented parseDigestReference function, and updated artifact creation logic to handle digest references |
| pkg/cmd/attestation/artifact/artifact_posix_test.go | Added comprehensive test coverage for digest reference normalization and parsing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add support for accepting pre-computed checksums (sha256:<digest> or sha512:<digest>) as input to `gh attestation download`, matching the functionality added to the verify command. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Member
|
Closing due to #12462 (comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12462
Add support for accepting pre-computed checksums (sha256: or sha512:) as input to
gh attestation verifyandgh attestation download, similar tocosign verify-blob. This allows verification without downloading large artifacts when the digest is already known.