Skip to content

Commit

Permalink
Tweak datetime format to use what Python spits out
Browse files Browse the repository at this point in the history
And also what we use across our other security data files (CSAF advisories
and VEX).
  • Loading branch information
mprpic committed Oct 24, 2024
1 parent 38f20fc commit 8383f77
Show file tree
Hide file tree
Showing 28 changed files with 274 additions and 274 deletions.
4 changes: 2 additions & 2 deletions docs/sbom.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The following snippet shows a minimal SBOM document:
"dataLicense": "CC-BY-4.0",// (2)!
"SPDXID": "SPDXRef-DOCUMENT",// (3)!
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down Expand Up @@ -459,7 +459,7 @@ An architecture-specific RPM built by Red Hat can be represented by a package ob
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: 4cc665dd3173c8952184293588f9ee46"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
2 changes: 1 addition & 1 deletion sbom/examples/container_image/release/from_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def create_sbom(image_id, root_package, packages, rel_type, other_pkgs=None, oth
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
2 changes: 1 addition & 1 deletion sbom/examples/product/rhel-9.2-eus.spdx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down
4 changes: 2 additions & 2 deletions sbom/examples/rpm/build/from-koji.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def handle_srpm(filename, name):
# Same as document.creationInfo.creators
"annotator": "Tool: example SPDX document only",
# Same as document.creationInfo.created
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": f"sigmd5: {sigmd5}",
}
],
Expand Down Expand Up @@ -384,7 +384,7 @@ def handle_srpm(filename, name):
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dataLicense": "CC-BY-4.0",
"SPDXID": "SPDXRef-DOCUMENT",
"creationInfo": {
"created": "2006-08-14T02:34:56Z",
"created": "2006-08-14T02:34:56+00:00",
"creators": [
"Tool: example SPDX document only"
]
Expand Down Expand Up @@ -18705,7 +18705,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: ff3f705ac3e7d126414e2ddac0ca6698"
}
]
Expand Down Expand Up @@ -18774,7 +18774,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: 72cb02dc0199f79d373d0711fb9f34a1"
}
]
Expand Down Expand Up @@ -18804,7 +18804,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: af4f27125181cd98a50d0ab1e9a674f4"
}
]
Expand Down Expand Up @@ -18834,7 +18834,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: a256612eeae23411aed22f8648143ddb"
}
]
Expand Down Expand Up @@ -18864,7 +18864,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: b78748d047c9228691469e04046a5e8a"
}
]
Expand Down Expand Up @@ -18894,7 +18894,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: 12a4752a5db8103c95014b84bfc3c324"
}
]
Expand Down Expand Up @@ -18924,7 +18924,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: aecd200bcec7df622e6f5865535d17a7"
}
]
Expand Down Expand Up @@ -18954,7 +18954,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: 64c4de3e0b4df349d3ac5d801e2aac86"
}
]
Expand Down Expand Up @@ -18984,7 +18984,7 @@
{
"annotationType": "OTHER",
"annotator": "Tool: example SPDX document only",
"annotationDate": "2006-08-14T02:34:56Z",
"annotationDate": "2006-08-14T02:34:56+00:00",
"comment": "sigmd5: 20369982b93b4710c630a5032a887938"
}
]
Expand Down
Loading

0 comments on commit 8383f77

Please sign in to comment.