Skip to content

Commit 2f700f8

Browse files
authored
Merge pull request #51 from jasinner/spdx-supplier
Add SPDX Red Hat Supplier to examples
2 parents cc13e46 + 02287de commit 2f700f8

22 files changed

+46
-27
lines changed

docs/sbom.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ The following snippet shows a minimal SBOM document:
157157
"creationInfo": {
158158
"created": "2006-08-14T02:34:56Z",// (4)!
159159
"creators": [
160-
"Tool: example SPDX document only"
160+
"Tool: example SPDX document only",
161+
"Organization: Red Hat"// (5)!
161162
]
162163
},
163164
"name": "ubi9-micro-container-9.4-6.1716471860_amd64",
@@ -177,17 +178,18 @@ The following snippet shows a minimal SBOM document:
177178

178179
4. UTC timestamps must use the `YYYY-MM-DDThh:mm:ssZ` format.
179180

181+
5. creationInfo / creators includes the "Organization: Red Hat" value.
182+
180183
A more detailed breakdown of some of the fields:
181184

182185
`creationInfo`
183186
: This field must contain at least the
184-
[`created`](https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#68-creator-field) and
185-
[`creators`](https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#69-created-field)
187+
[`created`](https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#69-created-field) and
188+
[`creators`](https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#68-creator-field)
186189
fields. The timestamp in the `created` field must be set to an ISO 8601-formatted date and time string using
187190
the UTC timezone. The `creators` field must identify the tool and its version that was used to generate the SBOM
188191
file (for example, `Tool: SBOMer 1.2.3` or even `Tool: pkg:github/project-ncl/[email protected]`).
189-
Optionally, the organization responsible for generating the SBOM can be included in a separate string
190-
(for example, `Organization: Red Hat Product Security ([email protected])`).
192+
The value `Organization: Red Hat` included in a separate string. This is required by Red Hat Trusted Profiler Analyser 2 in order to trigger special handling.
191193

192194
[`name`](https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#64-document-name-field)
193195
: This is an arbitrary value that should describe the main artifact described by the SBOM document. This can be a

sbom/examples/container_image/release/from_catalog.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ def create_sbom(image_id, root_package, packages, rel_type, other_pkgs=None, oth
103103
"SPDXID": "SPDXRef-DOCUMENT",
104104
"creationInfo": {
105105
"created": "2006-08-14T02:34:56Z",
106-
"creators": [
107-
"Tool: example SPDX document only",
108-
],
106+
"creators": ["Tool: example SPDX document only", "Organization: Red Hat"],
109107
},
110108
"name": image_id,
111109
"documentNamespace": f"https://www.redhat.com/{image_id}.spdx.json",

sbom/examples/container_image/release/kernel-module-management-operator-container-1.1.2-25.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "kernel-module-management-operator-container-1.1.2-25",

sbom/examples/container_image/release/kernel-module-management-operator-container-1.1.2-25_amd64.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "kernel-module-management-operator-container-1.1.2-25_amd64",

sbom/examples/container_image/release/kernel-module-management-operator-container-1.1.2-25_arm64.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "kernel-module-management-operator-container-1.1.2-25_arm64",

sbom/examples/container_image/release/kernel-module-management-operator-container-1.1.2-25_ppc64le.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "kernel-module-management-operator-container-1.1.2-25_ppc64le",

sbom/examples/container_image/release/ubi9-micro-container-9.4-6.1716471860.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "ubi9-micro-container-9.4-6.1716471860",

sbom/examples/container_image/release/ubi9-micro-container-9.4-6.1716471860_amd64.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "ubi9-micro-container-9.4-6.1716471860_amd64",

sbom/examples/container_image/release/ubi9-micro-container-9.4-6.1716471860_arm64.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "ubi9-micro-container-9.4-6.1716471860_arm64",

sbom/examples/container_image/release/ubi9-micro-container-9.4-6.1716471860_ppc64le.spdx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"creationInfo": {
66
"created": "2006-08-14T02:34:56Z",
77
"creators": [
8-
"Tool: example SPDX document only"
8+
"Tool: example SPDX document only",
9+
"Organization: Red Hat"
910
]
1011
},
1112
"name": "ubi9-micro-container-9.4-6.1716471860_ppc64le",

0 commit comments

Comments
 (0)