Skip to content

Commit

Permalink
Add CWE info in the SARIF output
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Brown <[email protected]>
  • Loading branch information
ericwb committed Mar 5, 2024
1 parent 83996e3 commit 4532d5d
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 4532d5d

Please sign in to comment.