Skip to content

Commit

Permalink
🐛 fix bearer_cli #11245 (#11248)
Browse files Browse the repository at this point in the history
* 🐛 fix bearer_cli #11245

* ruff
  • Loading branch information
manuel-sommer authored Nov 15, 2024
1 parent 7abf301 commit e9b1354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/tools/bearer_cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_findings(self, file, test):
finding = Finding(
title=bearerfinding["title"] + " in " + bearerfinding["filename"] + ":" + str(bearerfinding["line_number"]),
test=test,
description=bearerfinding["description"] + "\n Detected code snippet: \n" + bearerfinding["snippet"],
description=bearerfinding["description"] + "\n Detected code snippet: \n" + bearerfinding.get("snippet", bearerfinding.get("code_extract")),
severity=severity,
cwe=bearerfinding["cwe_ids"][0],
static_finding=True,
Expand Down

0 comments on commit e9b1354

Please sign in to comment.