|
@@ -297,6 +297,14 @@ def main():
|
|
|
"bomFormat": "CycloneDX",
|
|
"bomFormat": "CycloneDX",
|
|
|
"$schema": f"http://cyclonedx.org/schema/bom-{CYCLONEDX_VERSION}.schema.json",
|
|
"$schema": f"http://cyclonedx.org/schema/bom-{CYCLONEDX_VERSION}.schema.json",
|
|
|
"specVersion": f"{CYCLONEDX_VERSION}",
|
|
"specVersion": f"{CYCLONEDX_VERSION}",
|
|
|
|
|
+ "metadata": {
|
|
|
|
|
+ "component": {
|
|
|
|
|
+ "bom-ref": "buildroot",
|
|
|
|
|
+ "name": "buildroot",
|
|
|
|
|
+ "type": "firmware",
|
|
|
|
|
+ "version": f"{BR2_VERSION_FULL}",
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
"components": [
|
|
"components": [
|
|
|
cyclonedx_component(name, comp) for name, comp in filtered_show_info_dict.items()
|
|
cyclonedx_component(name, comp) for name, comp in filtered_show_info_dict.items()
|
|
|
],
|
|
],
|
|
@@ -306,14 +314,6 @@ def main():
|
|
|
for ref in filtered_show_info_dict],
|
|
for ref in filtered_show_info_dict],
|
|
|
],
|
|
],
|
|
|
"vulnerabilities": cyclonedx_vulnerabilities(show_info_dict),
|
|
"vulnerabilities": cyclonedx_vulnerabilities(show_info_dict),
|
|
|
- "metadata": {
|
|
|
|
|
- "component": {
|
|
|
|
|
- "bom-ref": "buildroot",
|
|
|
|
|
- "name": "buildroot",
|
|
|
|
|
- "type": "firmware",
|
|
|
|
|
- "version": f"{BR2_VERSION_FULL}",
|
|
|
|
|
- },
|
|
|
|
|
- },
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
args.out_file.write(json.dumps(cyclonedx_dict, indent=2))
|
|
args.out_file.write(json.dumps(cyclonedx_dict, indent=2))
|