feat: update SBOM external reference type for source code URLs from `… - #233
Conversation
…distribution` to `source-distribution`
| component, | ||
| ExternalReferenceType.DISTRIBUTION, | ||
| CaPyCliBom.SOURCE_URL_COMMENT) | ||
| ExternalReferenceType.SOURCE_DISTRIBUTION, "") |
There was a problem hiding this comment.
Should we perhaps make this backward-compatible in central places when consuming an SBOM, probably users still have old (custom) scanners in use?
There was a problem hiding this comment.
I think there's get_ext_ref_source_url() for backward-compatible parsing, can we just call it here?
There was a problem hiding this comment.
Good point. Unfortunately get_ext_ref_source_url() returns a string, but we need the ExternalReference. I have fixed it accordingly.
|
Just cosmetics, I think it would be better if we would use None instead of "" for the |
|
Apart from the comments above, the PR looks good, but I didn't test it yet, let me know if I should give it a try! |
Honstly, I added "" and I didn't care... now it is |
Aaarrgghhh, mypy error |
Update SBOM external reference type for source code URLs from
distributionto
source-distribution.