From 6ddc23768f3982cf8166639d6e5862d3dacd9df9 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Thu, 11 Dec 2025 12:17:58 -0800 Subject: [PATCH] exit codes --- .gitea/workflows/security.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/security.yml b/.gitea/workflows/security.yml index 87fd31b..a6ff1e1 100644 --- a/.gitea/workflows/security.yml +++ b/.gitea/workflows/security.yml @@ -56,6 +56,9 @@ jobs: if [ -f trivy-results.txt ]; then echo "=== Trivy Security Scan Results ===" cat trivy-results.txt + else + echo "No Trivy scan results found" + exit 1 fi - name: Install Semgrep @@ -77,4 +80,7 @@ jobs: if [ -f semgrep-results.txt ]; then echo "=== Semgrep Static Analysis Results ===" cat semgrep-results.txt + else + echo "No Semgrep scan results found" + exit 1 fi