cosign
cosign copied to clipboard
cyclonedxxml predicate type
Summary
This adds to ability to unmarshal xml-formatted CycloneDX SBOMs and add them as attestation payloads. Previous it was a little ambiguous as to which file format was expected for cyclonedx predicate types, and this removes that ambiguity.
Closes #2230
Release Note
Updates available cosign attest --type options to include cyclonedxxml. --type cyclonedx is unaffected and still expect a JSON formatted CycloneDX SBOM.
Documentation
Overall it is LGTM, thx @chaospuppy, could you please rebase from main?
@developer-guy rebased!
Looks like I forgot to sign off on the last commit, I can go ahead and sign off and repush if that's preferable.
@hectorj2f somewhere in here make sense?
Yep, the e2e tests would be a good place, or adding unit tests.
Codecov Report
Merging #2231 (27f7887) into main (c1322bc) will increase coverage by
0.44%. The diff coverage is0.00%.
@@ Coverage Diff @@
## main #2231 +/- ##
==========================================
+ Coverage 28.57% 29.02% +0.44%
==========================================
Files 131 131
Lines 7852 7872 +20
==========================================
+ Hits 2244 2285 +41
+ Misses 5302 5275 -27
- Partials 306 312 +6
| Impacted Files | Coverage Δ | |
|---|---|---|
| cmd/cosign/cli/options/predicate.go | 0.00% <0.00%> (ø) |
|
| pkg/cosign/tlog.go | 37.75% <0.00%> (-0.80%) |
:arrow_down: |
| cmd/cosign/cli/verify/verify_blob.go | 45.09% <0.00%> (-0.17%) |
:arrow_down: |
| ...ernal/pkg/cosign/fulcio/fulcioroots/fulcioroots.go | 57.77% <0.00%> (+3.01%) |
:arrow_up: |
| cmd/cosign/cli/verify/verify.go | 19.34% <0.00%> (+13.37%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
@chaospuppy lgtm, but you need to update the cli docs.
Yep, the e2e tests would be a good place, or adding unit tests.
I'd be happy to add some unit tests to some commands going forward, when I have some more time!
It looks like the docsign failed because of some whitespace I removed after --replace in the cli docs, and then the "Test attest" check failed for dubious reasons.
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR was closed because it has been stalled for 10 days with no activity.