feat: support digest arguments in verify-artifact command#877
Open
suzuki-shunsuke wants to merge 2 commits into
Open
feat: support digest arguments in verify-artifact command#877suzuki-shunsuke wants to merge 2 commits into
suzuki-shunsuke wants to merge 2 commits into
Conversation
Allow verify-artifact to accept sha256:xxx or sha512:xxx digest strings as positional arguments instead of file paths. This enables verification without downloading large artifacts when only the digest is known. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
24b7a1e to
cabfb83
Compare
Contributor
Author
|
Contributor
Author
|
BTW, golangci-lint is old. https://github.com/golangci/golangci-lint/releases |
``` Running [/home/runner/golangci-lint-1.61.0-linux-amd64/golangci-lint run] in [/home/runner/work/slsa-verifier/slsa-verifier] ... Error: cli/slsa-verifier/verify/utils.go:58:2: importShadow: shadow of imported package 'hash' (gocritic) hash := parts[1] ^ ``` Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
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 #876
Allow verify-artifact to accept
sha256:xxxorsha512:xxxdigest strings as positional arguments instead of file paths. This enables verification without downloading large artifacts when only the digest is known.Test
Example: pinact_darwin_amd64.tar.gz (
sha256:4f658c9258ba261019114afcf8cbc155ce1b9a1157d17cb1fc2e0a48d962d1d7) GitHub ReleaseBefore: digest isn't supported.
After: digest is supported.