Skip to contentSkip to conversation

cve-check: add field "modified" to JSON report

PATCH New Katawann 1 participant 1 message Sep 19, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Katawann

author
#1 lore raw

PATCH 1/1 cve-check: add field "modified" to JSON report

Added the "modified" field to the JSON export in the cve-check.class. This field captures the last modification date of each CVE, providing more detailed information on changes and updates within the exported data.

---
 meta/classes/cve-check.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/cve-check.bbclass +1 -0
index a5104f210b..6245594dd7 100644
@@ -534,6 +534,7 @@ def cve_write_data_json(d, cve_data, cve_status):
             cve_item["summary"] = cve_data[cve]["NVD-summary"]
             cve_item["scorev2"] = cve_data[cve]["NVD-scorev2"]
             cve_item["scorev3"] = cve_data[cve]["NVD-scorev3"]
+            cve_item["modified"] = cve_data[cve]["NVD-modified"]
             cve_item["vector"] = cve_data[cve]["NVD-vector"]
             cve_item["vectorString"] = cve_data[cve]["NVD-vectorString"]
         if 'status' in cve_data[cve]:
Signature · 1 line
2.46.0