From 1c833af2ea56e55646a0ad4679a24af55f714c16 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Sat, 21 Dec 2024 11:39:38 -0800 Subject: [PATCH] add title logic back in --- dojo/tools/mend/parser.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dojo/tools/mend/parser.py b/dojo/tools/mend/parser.py index ec7c7cdb9d..cc18bf3175 100644 --- a/dojo/tools/mend/parser.py +++ b/dojo/tools/mend/parser.py @@ -68,8 +68,6 @@ def _build_common_output(node, lib_name=None): ) cvss3_score = node["vulnerability"].get("score", None) component_path = node["component"].get("path", None) - cve = node["vulnerability"].get("name") - title = "CVE-None | " + lib_name if cve is None else cve + " | " + lib_name if component_path: locations.append(component_path) if "topFix" in node: @@ -109,8 +107,6 @@ def _build_common_output(node, lib_name=None): component_name = node["library"].get("artifactId") component_version = node["library"].get("version") cvss3_score = node.get("cvss3_score", None) - cve = node.get("name") - title = "CVE-None | " + lib_name if cve is None else cve + " | " + lib_name if "topFix" in node: try: topfix_node = node.get("topFix") @@ -123,8 +119,8 @@ def _build_common_output(node, lib_name=None): else: description = node.get("description", "Unknown") - # cve = node.get("name") - # title = "CVE-None | " + lib_name if cve is None else cve + " | " + lib_name + cve = node.get("name") + title = "CVE-None | " + lib_name if cve is None else cve + " | " + lib_name # cvss2 by default in CLI, but cvss3 in UI. Adapting to have # homogeneous behavior. if "cvss3_severity" in node: