Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Sigstore verification result handling in gh attestation verify #9877

Merged

Conversation

malancas
Copy link
Contributor

@malancas malancas commented Nov 4, 2024

Remove an extra struct used when handling Sigstore verification results. Instead, the Sigstore verification method returns a slice of attestations and an error.

So the signature of SigstoreVerifier#Verify has changed from Verify(attestations []*api.Attestation, policy verify.PolicyBuilder) *SigstoreResults to Verify(attestations []*api.Attestation, policy verify.PolicyBuilder) ([]*AttestationProcessingResult, error).

This aligns more with the types returned by other functions in pkg/cmd/attestation.

cc #9850

Signed-off-by: Meredith Lancaster <malancas@github.com>
@malancas malancas requested a review from a team as a code owner November 4, 2024 20:05
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Nov 4, 2024
@malancas malancas merged commit 2f47d1c into cli:trunk Nov 6, 2024
9 checks passed
@malancas malancas deleted the simplify-sigstore-verify-result-handling branch November 7, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external pull request originating outside of the CLI core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants