From b7c9d3d4ea7382b2d49c9a903acb8cf08cc01032 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Mon, 18 Nov 2024 08:19:20 -0800 Subject: [PATCH] Update parser.py --- dojo/tools/mend/parser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dojo/tools/mend/parser.py b/dojo/tools/mend/parser.py index 03a776654f..fe8e44fe8c 100644 --- a/dojo/tools/mend/parser.py +++ b/dojo/tools/mend/parser.py @@ -39,7 +39,6 @@ def _build_common_output(node, lib_name=None): description = "No Description Available" cvss3_score = None if "component" in node: - node["project"].get("name") description = ( "**Vulnerability Description** : " + node["vulnerability"].get("description", "No Description Available") @@ -68,10 +67,8 @@ def _build_common_output(node, lib_name=None): component_version = node["component"].get("version") impact = node["component"].get("dependencyType") cvss3_score = node["vulnerability"].get("score", None) - else: - description = node.get("vulnerability", {}).get("description", "Unknown") - if "library" in node: + elif "library" in node: node.get("project") description = ( "**Description** : "