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

Update cosign generate cmd to not include newline #3393

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

lkatalin
Copy link
Contributor

Fixes #3392

Summary

Please see #3392 for a description of the problem.

Removing the newline will result in a payload and sha256sum that is equivalent to what you get with the --output-payload flag and inside the hashedrekordobj.data.hash.value field.

Release Note

I'm not sure if fixing this bug will be a breaking change for anyone relying on cosign generate to output with specific formatting.

Documentation

None

Removing the newline will result in a payload and sha256sum that is
equivalent to what you get with the --output-payload flag and inside
the hashedrekordobj.data.hash.value field.

Signed-off-by: Lily Sturmann <[email protected]>
@haydentherapper
Copy link
Contributor

No concerns about this being a potentially breaking change, as this seems more like a bug.

@lkatalin lkatalin force-pushed the testing branch 2 times, most recently from 66ba14c to a473ede Compare November 27, 2023 20:17
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (da53b08) 30.23% compared to head (a473ede) 30.23%.

Files Patch % Lines
cmd/cosign/cli/generate/generate.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3393   +/-   ##
=======================================
  Coverage   30.23%   30.23%           
=======================================
  Files         155      155           
  Lines        9958     9958           
=======================================
  Hits         3011     3011           
  Misses       6497     6497           
  Partials      450      450           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

lgtm

@haydentherapper haydentherapper merged commit 0763bff into sigstore:main Nov 28, 2023
28 checks passed
@github-actions github-actions bot added this to the v2.3.0 milestone Nov 28, 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.

Newline in cosign generate payload results in differing sha256sum
3 participants