diff --git a/dojo/tools/bearer_cli/parser.py b/dojo/tools/bearer_cli/parser.py index a7b4eba4f2..0c72db3877 100644 --- a/dojo/tools/bearer_cli/parser.py +++ b/dojo/tools/bearer_cli/parser.py @@ -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,