Skip to content

Commit

Permalink
fix rules duplicates (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
maratsal authored Nov 13, 2023
1 parent fa7ecd0 commit fa67afe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions github/new-scan-engine/sysdig-to-sarif.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def generate_report(data):

for vuln in package['vulns']:
if vuln['name'] not in ruleIds:
ruleIds.append(vuln['name'])
rule = {
"id": f"{vuln['name']}",
"name": f"{package['type']}",
Expand Down

0 comments on commit fa67afe

Please sign in to comment.