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 12, 2024
1 parent b8c8e64 commit dd3cf09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]
Expand Down

0 comments on commit dd3cf09

Please sign in to comment.