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

Add unit tests for SCT verification #204

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented Jun 7, 2024

Fixes #46

Summary

Release Note

Documentation

Copy link
Member

@steiza steiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

Minor: can we remove the TODO on https://github.com/sigstore/sigstore-go/blob/main/pkg/verify/sct.go#L32 about adding unit tests?

While reviewing, I was thinking about if the SCT functionality should live in https://github.com/sigstore/sigstore-go/blob/main/pkg/testing/ca/ca.go or not. But I think it's better as-is, because this way you can easily provide malformed SCTs for testing.

@steiza steiza requested a review from a team June 10, 2024 14:55
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this looks great! +1 to removing the TODO

Signed-off-by: Colleen Murphy <colleenmurphy@google.com>
@cmurphy
Copy link
Contributor Author

cmurphy commented Jun 10, 2024

done

Copy link
Member

@steiza steiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, nice work!

@haydentherapper haydentherapper merged commit c60e743 into sigstore:main Jun 10, 2024
10 checks passed
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.

Add unit tests for SCT verification
3 participants