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
12 changes: 10 additions & 2 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,18 @@ 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 -s B101 || true

bandit -r . \
--severity-level medium \
--skip "${BANDIT_SKIP_IDS}" \
-f txt \
-x .venv,venv,site-packages,build,dist,.tox,tests,migrations \
-o bandit-results.txt || true

# Run Safety check on requirements
if [ -f "requirements.txt" ]; then
Expand Down Expand Up @@ -123,7 +131,7 @@ jobs:
fi

- name: Comment PR
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
if: always()
with:
issue-number: ${{ github.event.pull_request.number }}
Expand Down