Skip to content

Commit

Permalink
Correct CBOM time, add reference
Browse files Browse the repository at this point in the history
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
  • Loading branch information
bhess committed Jul 9, 2024
1 parent 0a87d9e commit ef4fa89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
15 changes: 8 additions & 7 deletions docs/cbom.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"$schema": "https://github.com/raw/CycloneDX/specification/1.6/schema/bom-1.6.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:dab41ba0-4a03-49b2-85ac-b4822fc89ff4",
"serialNumber": "urn:uuid:1b8d1eed-25ae-4150-800f-ba795ca0fe4e",
"version": 1,
"metadata": {
"timestamp": "2024-07-09T09:35:24.712476",
"timestamp": "2024-07-09T09:35:30.578130+00:00",
"component": {
"type": "library",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@d2089c5017fc45f4dce2f6516b3e9ad337946600",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@0a87d9e566f2dd2b512d67f4954bba34a6f01899",
"name": "liboqs",
"version": "d2089c5017fc45f4dce2f6516b3e9ad337946600"
"version": "0a87d9e566f2dd2b512d67f4954bba34a6f01899"
}
},
"components": [
{
"type": "library",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@d2089c5017fc45f4dce2f6516b3e9ad337946600",
"bom-ref": "pkg:github/open-quantum-safe/liboqs@0a87d9e566f2dd2b512d67f4954bba34a6f01899",
"name": "liboqs",
"version": "d2089c5017fc45f4dce2f6516b3e9ad337946600"
"version": "0a87d9e566f2dd2b512d67f4954bba34a6f01899"
},
{
"type": "cryptographic-asset",
Expand Down Expand Up @@ -2166,7 +2167,7 @@
],
"dependencies": [
{
"ref": "pkg:github/open-quantum-safe/liboqs@d2089c5017fc45f4dce2f6516b3e9ad337946600",
"ref": "pkg:github/open-quantum-safe/liboqs@0a87d9e566f2dd2b512d67f4954bba34a6f01899",
"provides": [
"alg:BIKE-L1:x86_64",
"alg:BIKE-L3:x86_64",
Expand Down
5 changes: 3 additions & 2 deletions scripts/update_cbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import json
import git
import uuid
from datetime import datetime
import datetime
import copy

cbom_json_file = "cbom.json"
Expand Down Expand Up @@ -156,7 +156,7 @@ def build_cbom(liboqs_root, liboqs_version):
cbom_components.insert(0, liboqs_component)

metadata = {}
metadata['timestamp'] = datetime.now().isoformat()
metadata['timestamp'] = datetime.datetime.now(datetime.timezone.utc).isoformat()
metadata['component'] = liboqs_component

## Dependencies
Expand All @@ -175,6 +175,7 @@ def build_cbom(liboqs_root, liboqs_version):

## CBOM
cbom = {}
cbom['$schema'] = "https://github.com/raw/CycloneDX/specification/1.6/schema/bom-1.6.schema.json"
cbom['bomFormat'] = "CycloneDX"
cbom['specVersion'] = "1.6"
cbom['serialNumber'] = "urn:uuid:" + str(uuid.uuid4())
Expand Down

0 comments on commit ef4fa89

Please sign in to comment.