Skip to content

Commit

Permalink
Add CWE info in the SARIF output (#322)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
  • Loading branch information
ericwb authored Mar 5, 2024
1 parent 83996e3 commit cc4e560
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion precli/renderers/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def create_rule_array(self, run: Run):
)
},
properties={
"tags": ["security"],
"tags": [
"security",
f"external/cwe/cwe-{rule.cwe.cwe_id}",
],
},
)
rules.append(reporting_descriptor)
Expand Down

0 comments on commit cc4e560

Please sign in to comment.