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

Bump cosign to v2 and use new APIs #1197

Merged
merged 2 commits into from
May 4, 2023
Merged

Bump cosign to v2 and use new APIs #1197

merged 2 commits into from
May 4, 2023

Conversation

ThomasVitale
Copy link
Contributor

@ThomasVitale ThomasVitale commented Apr 25, 2023

  • Bump Cosign to 2.0.2
  • Update cosign usage to use new Sign API
  • Update cosign tests to use new Verify API

Fixes gh-1182

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
@tomkennedy513
Copy link
Collaborator

Hi @ThomasVitale Thank you for the pr! It looks like there are some failing tests. Would you be able to take a look at those?

@ThomasVitale
Copy link
Contributor Author

@tomkennedy513 I'm looking into the failing tests and will update the PR asap. Thanks!

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
@ThomasVitale
Copy link
Contributor Author

@tomkennedy513 tests updated

@codecov-commenter
Copy link

Codecov Report

Merging #1197 (cca53ba) into main (9081a18) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1197      +/-   ##
==========================================
+ Coverage   67.58%   67.59%   +0.01%     
==========================================
  Files         132      132              
  Lines        7999     8002       +3     
==========================================
+ Hits         5406     5409       +3     
  Misses       2164     2164              
  Partials      429      429              
Impacted Files Coverage Δ
pkg/cosign/image_signer.go 88.46% <100.00%> (+0.46%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@tomkennedy513 tomkennedy513 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 for this change!

Copy link
Contributor

@chenbh chenbh left a comment

Choose a reason for hiding this comment

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

lgtm!

false,
false,
"",
true); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch on the flipping of noTlogUpload -> TlogUpload!

@tomkennedy513 tomkennedy513 merged commit 6e20ed7 into buildpacks-community:main May 4, 2023
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.

The Cosign integration doesn't work with version 2.0.0+
4 participants