Skip to content

Commit

Permalink
add title logic back in
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Dec 21, 2024
1 parent b7adf09 commit 1c833af
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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")
Expand All @@ -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:
Expand Down

0 comments on commit 1c833af

Please sign in to comment.