Skip to content

[pull] trunk from cli:trunk#139

Merged
pull[bot] merged 5 commits into
arc675:trunkfrom
cli:trunk
May 15, 2026
Merged

[pull] trunk from cli:trunk#139
pull[bot] merged 5 commits into
arc675:trunkfrom
cli:trunk

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 15, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

bdehamer and others added 5 commits May 14, 2026 10:31
The 'gh release verify' and 'gh release verify-asset' commands hard-coded
a 'sha1:' prefix when constructing the digest identifier for a release
tag's commit SHA. Once GitHub repositories using SHA-256 commit digests
are supported, that ref will be a 64-character SHA-256 hash and labeling
it as 'sha1:' is both misleading in user output and incorrect for the
attestation lookup.

Add a shared 'DigestAlgForRef' helper that returns 'sha256' for 64-char
digests and 'sha1' otherwise (preserving existing behavior for SHA-1
repositories), and use it at both call sites. Add test coverage for the
helper and for the SHA-256 error path in both commands.

Fixes #13429

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.81.0 to 1.81.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.81.0...v1.81.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.81.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…g.org/grpc-1.81.1

chore(deps): bump google.golang.org/grpc from 1.81.0 to 1.81.1
Address PR review feedback:
- Rename SHA1 tests to make the algorithm explicit
- Assert the sha1:/sha256: prefix appears in the error
- Use a capturing MockClient so we verify the actual digest sent to
  GetByDigest, not just the wrapped error message

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…orithm

Derive digest algorithm from ref length in release verify commands
@pull pull Bot locked and limited conversation to collaborators May 15, 2026
@pull pull Bot added the ⤵️ pull label May 15, 2026
@pull pull Bot merged commit f1c10e0 into arc675:trunk May 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants