From dd3cf09e48078a9ec815920c3c883216bec92459 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:16:15 -0800 Subject: [PATCH] Update parser.py --- dojo/tools/mend/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dojo/tools/mend/parser.py b/dojo/tools/mend/parser.py index 1af57d24a0..0400531716 100644 --- a/dojo/tools/mend/parser.py +++ b/dojo/tools/mend/parser.py @@ -175,7 +175,6 @@ def _build_common_output(node, lib_name=None): ) if locations and len(", ".join(locations)) > 3999: locations = [loc[:3999] for loc in locations] - steps_to_reproduce = "**Locations Found**: " + ", ".join(locations) if locations is not None else None filepaths = filepaths @@ -194,7 +193,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=steps_to_reproduce if steps_to_reproduce 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]