Skip to content

Commit

Permalink
Fix sarif security-severity
Browse files Browse the repository at this point in the history
  • Loading branch information
forefy committed Feb 16, 2024
1 parent e929a2e commit 326fca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eburger/utils/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def save_as_sarif(output_file_path: Path, insights: dict):
"text": "",
"markdown": "",
},
"properties": {"precision": "", "problem": {"security-severity": ""}},
"properties": {"precision": "", "security-severity": ""},
}

if os.path.exists(output_file_path):
Expand Down Expand Up @@ -199,7 +199,7 @@ def save_as_sarif(output_file_path: Path, insights: dict):
"markdown"
] = f"[{insight['action-items'][0]}]({insight['references'][0]})"
new_rule["properties"]["precision"] = insight["precision"].casefold()
new_rule["properties"]["problem"]["security-severity"] = (
new_rule["properties"]["security-severity"] = (
convert_severity_to_sarif_security_severity(insight["severity"])
)

Expand Down

0 comments on commit 326fca6

Please sign in to comment.