Skip to content

Commit

Permalink
feat: Improved CycloneDX copyright text generation
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Feb 13, 2024
1 parent af2492f commit d891f79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib4sbom/cyclonedx/cyclonedx_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ def generateJSONComponent(self, id, type, package):
item["license"] = license
component["licenses"] = [item]
if "copyrighttext" in package:
component["copyright"] = package["copyrighttext"]
if package["copyrighttext"] != "NOASSERTION":
component["copyright"] = package["copyrighttext"]
if "homepage" in package:
externalReference = dict()
externalReference["url"] = package["homepage"]
Expand Down

0 comments on commit d891f79

Please sign in to comment.