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

104 support cyclonedx external reference type source distribution #107

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
* `bom merge` improved: the dependencies are reconstructed, i.e. all dependencies
that existed in the SBOMs before the merge should also exist after the merge.
* `bom convert` improved: we can now convert from and to CycloneDX XML.
* new command `bom validate` to do a siple validation whether a given SBOM
* new command `bom validate` to do a simple validation whether a given SBOM
complies with the CycloneDX spec version 1.4, 1.5 or 1.6.
* `bom findsources`: programming language can be `golang` or `go`.
* support for the new CyCloneDX 1.6 external reference type `source-distribution`
when trying to find the source code for a component.

## 2.6.0.dev1

Expand Down
4 changes: 4 additions & 0 deletions capycli/common/capycli_bom_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ def get_ext_ref_source_url(comp: Component) -> Any:
and (ext_ref.comment == CaPyCliBom.SOURCE_URL_COMMENT):
return ext_ref.url

# new for CyCloneDX 1.6
if (ext_ref.type == ExternalReferenceType.SOURCE_DISTRIBUTION):
return ext_ref.url

return ""

@staticmethod
Expand Down
Loading