From 28a8880c0a9af5f4057a812cdef863e8efa13503 Mon Sep 17 00:00:00 2001 From: Lorenzo Venerandi Date: Thu, 22 Jan 2026 11:22:03 +0100 Subject: [PATCH] fix: add error handling to Bandit security check commands --- .github/workflows/security-scan.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 3507c4f..29a714f 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -30,8 +30,8 @@ jobs: - name: Bandit security check run: | - bandit -r src/ -f json -o bandit-report.json - bandit -r src/ -f txt + bandit -r src/ -f json -o bandit-report.json || true + bandit -r src/ -f txt || true # Check for HIGH severity issues only HIGH_COUNT=$(python3 -c "import json; data=json.load(open('bandit-report.json')); print(len([i for i in data['results'] if i['severity'] == 'HIGH']))")