From 9460289cb4b8936a7d2210432729cd362c2047c4 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Wed, 14 Sep 2022 11:49:40 +0200 Subject: [PATCH] Apply https://github.com/opensbom-generator/spdx-sbom-generator/pull/238 Signed-off-by: Cedric Nugteren --- pkg/format/format.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/format/format.go b/pkg/format/format.go index 8002cb4..052aeff 100644 --- a/pkg/format/format.go +++ b/pkg/format/format.go @@ -160,9 +160,9 @@ func (f *Format) convertToPackage(module models.Module) (models.Package, error) Value: module.CheckSum.String(), }}, PackageHomePage: buildHomepageURL(module.PackageURL), - PackageLicenseConcluded: noAssertion, // setPkgValue(module.LicenseConcluded), - PackageLicenseDeclared: noAssertion, // setPkgValue(module.LicenseDeclared), - PackageCopyrightText: noAssertion, // setPkgValue(module.Copyright), + PackageLicenseConcluded: setPkgValue(module.LicenseConcluded), + PackageLicenseDeclared: setPkgValue(module.LicenseDeclared), + PackageCopyrightText: setPkgValue(module.Copyright), PackageLicenseComments: setPkgValue(""), PackageComment: setPkgValue(""), RootPackage: module.Root,