We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42ebe2b commit 241a767Copy full SHA for 241a767
1 file changed
dojo/tools/bearer_cli/parser.py
@@ -33,7 +33,7 @@ def get_findings(self, file, test):
33
finding = Finding(
34
title=bearerfinding["title"] + " in " + bearerfinding["filename"] + ":" + str(bearerfinding["line_number"]),
35
test=test,
36
- 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")),
37
severity=severity,
38
cwe=bearerfinding["cwe_ids"][0],
39
static_finding=True,
0 commit comments