From d891f79637fa707d1bcb47a6282a270a544b462f Mon Sep 17 00:00:00 2001 From: anthonyharrison Date: Tue, 13 Feb 2024 09:56:57 +0000 Subject: [PATCH] feat: Improved CycloneDX copyright text generation --- lib4sbom/cyclonedx/cyclonedx_generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib4sbom/cyclonedx/cyclonedx_generator.py b/lib4sbom/cyclonedx/cyclonedx_generator.py index 3fe8904..616f543 100644 --- a/lib4sbom/cyclonedx/cyclonedx_generator.py +++ b/lib4sbom/cyclonedx/cyclonedx_generator.py @@ -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"]