Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,17 @@ jobs:

- name: Run Security Scan
id: security_scan
env:
BANDIT_SKIP_IDS: ${{ secrets.BANDIT_SKIP_IDS }}
run: |
# Run bandit recursively on all Python files
echo "Running Bandit security scan..."
bandit -r . -f txt -o bandit-results.txt || true

bandit -r . \
--severity-level medium \ #Medium issues and higher.
--skip "${BANDIT_SKIP_IDS}" \ #Skip filtered IDs - Pulled above from GitHub Secret to avoid PR for every update.
-f txt \
-o bandit-results.txt || true #Continue on errors.

# Run Safety check on requirements
if [ -f "requirements.txt" ]; then
Expand Down