Skip to content

Commit

Permalink
🐛 fix bearer_cli #11245
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Nov 12, 2024
1 parent b079c37 commit 95254aa
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")),

Check failure on line 36 in dojo/tools/bearer_cli/parser.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (E231)

dojo/tools/bearer_cli/parser.py:36:124: E231 Missing whitespace after ','
severity=severity,
cwe=bearerfinding["cwe_ids"][0],
static_finding=True,
Expand Down

0 comments on commit 95254aa

Please sign in to comment.