support/scripts/cve-check: remove 'bom-ref' for vulnerabilities

The 'bom-ref' are optional and since we don't reference the
vulnerabilities from anywhere else in the SBOM they are not necessary in
this case.

In the following commit, cve-check will potentially emit multiple
vulnerabilities that have the same id. So using the vulnerability id
as 'bom-ref' won't be correct as the 'bom-ref' needs to be unique
unlike the id property.

Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Perale
2026-05-29 17:06:29 +02:00
committed by Thomas Petazzoni
parent 646356162b
commit af55c1a39b

View File

@@ -147,7 +147,6 @@ def nvd_cve_to_cdx_vulnerability(nvd_cve):
[1] https://cyclonedx.org/docs/1.6/json/#vulnerabilities
"""
vulnerability = {
"bom-ref": nvd_cve["id"],
"id": nvd_cve["id"],
"description": cve_api_get_lang_from_list(nvd_cve.get("descriptions", [])) or "",
"source": {