Skip to content

Commit a17bf70

Browse files
authored
sbom: populate supplier for operating system package (#2101)
* sbom: populate supplier for operating system package Signed-off-by: Jason Hall <[email protected]> * update goldens Signed-off-by: Jason Hall <[email protected]> * update goldens better Signed-off-by: Jason Hall <[email protected]> --------- Signed-off-by: Jason Hall <[email protected]>
1 parent b3bba3c commit a17bf70

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

pkg/build/testdata/goldenfiles/sboms/7zip-two-fetches-2301-r3.spdx.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"licenseDeclared": "NOASSERTION",
2626
"description": "Operating System",
2727
"downloadLocation": "NOASSERTION",
28+
"originator": "Organization: Wolfi",
29+
"supplier": "Organization: Wolfi",
2830
"primaryPackagePurpose": "OPERATING-SYSTEM"
2931
},
3032
{

pkg/build/testdata/goldenfiles/sboms/crane-0.20.2-r1.spdx.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"licenseDeclared": "NOASSERTION",
2626
"description": "Operating System",
2727
"downloadLocation": "NOASSERTION",
28+
"originator": "Organization: Wolfi",
29+
"supplier": "Organization: Wolfi",
2830
"primaryPackagePurpose": "OPERATING-SYSTEM"
2931
},
3032
{

pkg/sbom/document.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ func (d Document) createOperatingSystemPackage(os *apko_build.ReleaseData) spdx.
114114
LicenseDeclared: spdx.NOASSERTION,
115115
DownloadLocation: spdx.NOASSERTION,
116116
PrimaryPurpose: "OPERATING-SYSTEM",
117+
Originator: d.Describes.getSupplier(),
118+
Supplier: d.Describes.getSupplier(),
117119
}
118120
}
119121

0 commit comments

Comments
 (0)