Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

ci: replace bandit || true with --exit-zero and crash detection (#2951)

LearningCircuite1fa5d871f58
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml
index fc4b2d40ab..2d18dbd5fe 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -70,13 +70,17 @@ jobs:
- name: Run Bandit security linter
run: |
- # Generate JSON report for artifact upload
- pdm run bandit -r src/ -f json -o bandit-report.json -lll || true
- # Generate SARIF report for GitHub Code Scanning
- pdm run bandit -r src/ -f sarif -o bandit-results.sarif -lll || true
- if [ -f bandit-report.json ]; then
- echo "Bandit security scan completed"
+ # --exit-zero: report findings without failing (findings go to SARIF/Security tab)
+ # If bandit crashes (bad config, missing files), it exits non-zero WITHOUT --exit-zero
+ # and won't produce output files — the checks below catch that.
+ pdm run bandit -r src/ -f json -o bandit-report.json -lll --exit-zero
+ pdm run bandit -r src/ -f sarif -o bandit-results.sarif -lll --exit-zero
+ # Crash detection: if bandit crashed, no output files were produced
+ if [ ! -f bandit-report.json ] || [ ! -f bandit-results.sarif ]; then
+ echo "::error::Bandit crashed — expected output files not produced"
+ exit 1
fi
+ echo "Bandit security scan completed"
- name: Upload Bandit SARIF to Code Scanning
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0