Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into UML-3551-transform-consolidated-l…
Browse files Browse the repository at this point in the history
…pa-format-frontend
  • Loading branch information
SeemaMenon committed Oct 10, 2024
2 parents 6f30bb4 + d0108f6 commit 20953c3
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 20953c3

Please sign in to comment.