mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
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:
committed by
Thomas Petazzoni
parent
646356162b
commit
af55c1a39b
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user