Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Nov 18, 2024
1 parent ba9dc02 commit b7c9d3d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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** : "
Expand Down

0 comments on commit b7c9d3d

Please sign in to comment.