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: add Bandit SARIF upload to GitHub Code Scanning

LearningCircuite606e5b2511c
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml
index 28f0de9904..3cb77ab158 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -6,6 +6,7 @@ on:
permissions:
contents: read
+ security-events: write # Required for uploading SARIF results to Code Scanning
jobs:
security-tests:
@@ -69,11 +70,21 @@ jobs:
- name: Run Bandit security linter
run: |
- pdm run bandit -r src/ -f json -o bandit-report.json -lll
+ # 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"
fi
+ - name: Upload Bandit SARIF to Code Scanning
+ uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
+ if: always()
+ with:
+ sarif_file: bandit-results.sarif
+ category: bandit
+
- name: Check for known vulnerabilities with Safety
run: |
# Use pip-audit as a more reliable alternative to deprecated safety check
@@ -186,4 +197,5 @@ jobs:
name: security-reports
path: |
bandit-report.json
+ bandit-results.sarif
safety-report.json