Skip to content

Commit

Permalink
Update code scan report script (#2872)
Browse files Browse the repository at this point in the history
  • Loading branch information
gillettmoj authored Oct 10, 2024
1 parent 6f9bffa commit d0108f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/pipeline/generate_trivy_report/code_scan_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import requests
import sys

class CodeScanReport:
def __init__(self, repo, github_token) -> None:
Expand Down Expand Up @@ -132,6 +133,10 @@ def main():

overall_report, critical_alert_report, high_alert_report = vulnrability_report.generate_report()

if len(critical_alert_report) == 0 and len(high_alert_report) == 0:
print("No Critical or High alerts, Quitting")
sys.exit(0)

slack_report = f"""
"""

Expand Down

0 comments on commit d0108f6

Please sign in to comment.