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

Verify: check if summary is nil before accessing cert. #43

Merged
merged 1 commit into from
May 24, 2022

Conversation

wlynch
Copy link
Member

@wlynch wlynch commented May 23, 2022

Summary

Before, if we returned (nil, err), this would panic. This change adds an
extra check to make sure that summary.Cert can be safely accessed.

Signed-off-by: Billy Lynch billy@chainguard.dev

Ticket Link

Fixes #36

Release Note

Fixes panic in verification if there was an error when verifying the signature.

Before, if we returned (nil, err), this would panic. This change adds an
extra check to make sure that summary.Cert can be safely accessed.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
@wlynch wlynch merged commit 05dd77d into sigstore:main May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verification panics if summary is nil
3 participants