Skip to content

Commit 326fca6

Browse files
committed
Fix sarif security-severity
1 parent e929a2e commit 326fca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eburger/utils/outputs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def save_as_sarif(output_file_path: Path, insights: dict):
152152
"text": "",
153153
"markdown": "",
154154
},
155-
"properties": {"precision": "", "problem": {"security-severity": ""}},
155+
"properties": {"precision": "", "security-severity": ""},
156156
}
157157

158158
if os.path.exists(output_file_path):
@@ -199,7 +199,7 @@ def save_as_sarif(output_file_path: Path, insights: dict):
199199
"markdown"
200200
] = f"[{insight['action-items'][0]}]({insight['references'][0]})"
201201
new_rule["properties"]["precision"] = insight["precision"].casefold()
202-
new_rule["properties"]["problem"]["security-severity"] = (
202+
new_rule["properties"]["security-severity"] = (
203203
convert_severity_to_sarif_security_severity(insight["severity"])
204204
)
205205

0 commit comments

Comments
 (0)