Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Dec 10, 2024
1 parent f179732 commit 866ec7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _build_common_output(node, lib_name=None):
impact = (
"**Direct or Transitive Vulnerability**: "
+ node["component"].get("dependencyType")
+"\n"
+ "\n"
)
cvss3_score = node["vulnerability"].get("score", None)
component_path = node["component"].get("path", None)
Expand Down Expand Up @@ -194,7 +194,7 @@ def _build_common_output(node, lib_name=None):
cvssv3=cvss3_vector,
cvssv3_score=float(cvss3_score) if cvss3_score is not None else None,
impact=impact,
steps_to_reproduce=", ".join(locations) if locations is not None else None,
steps_to_reproduce="**Locations found**: " + ", ".join(locations) if locations is not None else None,
)
if cve:
new_finding.unsaved_vulnerability_ids = [cve]
Expand Down

0 comments on commit 866ec7a

Please sign in to comment.