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.

Fix security tests workflow to use pdm run for commands

LearningCircuit3d307ddf0cad
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml
index 97044b78da..ae8c1b2f41 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -65,7 +65,7 @@ jobs:
- name: Run Bandit security linter
run: |
- bandit -r src/ -f json -o bandit-report.json
+ pdm run bandit -r src/ -f json -o bandit-report.json
if [ -f bandit-report.json ]; then
echo "Bandit security scan completed"
fi
@@ -73,7 +73,7 @@ jobs:
- name: Check for known vulnerabilities with Safety
continue-on-error: true
run: |
- safety check --json > safety-report.json
+ pdm run safety check --json > safety-report.json
echo "Safety vulnerability scan completed"
- name: Run SQL injection tests
@@ -81,56 +81,56 @@ jobs:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_security_db
run: |
# Run SQL injection specific tests
- python -m pytest tests/security/test_sql_injection.py -v --tb=short
+ pdm run python -m pytest tests/security/test_sql_injection.py -v --tb=short
# Legacy tests (if they exist)
if [ -f tests/test_sql_injection_prevention.py ]; then
- python -m pytest tests/test_sql_injection_prevention.py -v --tb=short
+ pdm run python -m pytest tests/test_sql_injection_prevention.py -v --tb=short
fi
- name: Run XSS prevention tests
run: |
- python -m pytest tests/security/test_xss_prevention.py -v --tb=short
+ pdm run python -m pytest tests/security/test_xss_prevention.py -v --tb=short
# Legacy tests (if they exist)
if [ -f tests/test_xss_prevention.py ]; then
- python -m pytest tests/test_xss_prevention.py -v --tb=short
+ pdm run python -m pytest tests/test_xss_prevention.py -v --tb=short
fi
- name: Run CSRF protection tests
run: |
- python -m pytest tests/security/test_csrf_protection.py -v --tb=short
+ pdm run python -m pytest tests/security/test_csrf_protection.py -v --tb=short
# Legacy tests (if they exist)
if [ -f tests/test_csrf_protection.py ]; then
- python -m pytest tests/test_csrf_protection.py -v --tb=short
+ pdm run python -m pytest tests/test_csrf_protection.py -v --tb=short
fi
- name: Run authentication security tests
run: |
- python -m pytest tests/security/test_auth_security.py -v --tb=short
+ pdm run python -m pytest tests/security/test_auth_security.py -v --tb=short
# Legacy tests (if they exist)
if [ -f tests/test_password_security.py ]; then
- python -m pytest tests/test_password_security.py -v --tb=short
+ pdm run python -m pytest tests/test_password_security.py -v --tb=short
fi
if [ -f tests/test_session_security.py ]; then
- python -m pytest tests/test_session_security.py -v --tb=short
+ pdm run python -m pytest tests/test_session_security.py -v --tb=short
fi
- name: Run API security tests
run: |
- python -m pytest tests/security/test_api_security.py -v --tb=short
+ pdm run python -m pytest tests/security/test_api_security.py -v --tb=short
# Legacy tests (if they exist)
if [ -f tests/test_rate_limiting.py ]; then
- python -m pytest tests/test_rate_limiting.py -v --tb=short
+ pdm run python -m pytest tests/test_rate_limiting.py -v --tb=short
fi
if [ -f tests/test_api_authentication.py ]; then
- python -m pytest tests/test_api_authentication.py -v --tb=short
+ pdm run python -m pytest tests/test_api_authentication.py -v --tb=short
fi
- name: Run input validation tests
run: |
- python -m pytest tests/security/test_input_validation.py -v --tb=short
+ pdm run python -m pytest tests/security/test_input_validation.py -v --tb=short
# Legacy tests (if they exist)
if [ -f tests/test_input_sanitization.py ]; then
- python -m pytest tests/test_input_sanitization.py -v --tb=short
+ pdm run python -m pytest tests/test_input_sanitization.py -v --tb=short
fi
- name: Check for hardcoded secrets