From 752afbf4df3721f8468d4b6eb9858ca94c5d468b Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 25 Nov 2024 14:18:32 +0000 Subject: [PATCH] Add a SBOM template in CycloneDX format Improve supply chain security by including a SBOM file with substituted values. This will be used to construct a composite platform SBOM. Signed-off-by: Richard Hughes --- scripts/sbom.cdx.json | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 scripts/sbom.cdx.json diff --git a/scripts/sbom.cdx.json b/scripts/sbom.cdx.json new file mode 100644 index 0000000..ae81989 --- /dev/null +++ b/scripts/sbom.cdx.json @@ -0,0 +1,47 @@ +{ + "bomFormat": "CycloneDX", + "specVersion": "1.6", + "version": 1, + "metadata": { + "authors": [ + { + "name": "@VCS_SBOM_AUTHORS@" + } + ] + }, + "components": [ + { + "type": "library", + "bom-ref": "pkg:github/zeux/pugixml@@VCS_TAG@", + "cpe": "cpe:2.3:a:pugixml_project:pugixml:@VCS_TAG@:*:*:*:*:*:*:*", + "name": "pugixml", + "version": "@VCS_VERSION@", + "description": "C++ XML processing library", + "supplier": { + "name": "pugixml developers" + }, + "authors": [ + { + "name": "@VCS_AUTHORS@" + } + ], + "licenses": [ + { + "license": { + "id": "MIT" + } + } + ], + "externalReferences": [ + { + "type": "website", + "url": "https://pugixml.org/" + }, + { + "type": "vcs", + "url": "https://github.com/zeux/pugixml" + } + ] + } + ] +}