Skip to content

Commit

Permalink
Merge pull request #286 from juliendoutre/julien.doutre/fix-sarif-reg…
Browse files Browse the repository at this point in the history
…ression

Fix Sarif format regression
  • Loading branch information
christophetd authored Nov 2, 2023
2 parents 86e53ba + 5b148e1 commit a8287bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guarddog/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def display_result(result: dict) -> None:
return_value = js.dumps(results)

if output_format == "sarif":
return_value = report_verify_sarif(path, list(rule_param), results, ecosystem)
sarif_rules = PYPI_RULES if ecosystem == ECOSYSTEM.PYPI else NPM_RULES
return_value = report_verify_sarif(path, list(sarif_rules), results, ecosystem)

if output_format is not None:
print(return_value)
Expand Down

0 comments on commit a8287bc

Please sign in to comment.