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): resolve DevSkim code-scanning alerts (3 false positives + 1 TLS note) (#5599)

LearningCircuit10f0964ae489
diff --git a/.github/workflows/ai-code-reviewer.yml b/.github/workflows/ai-code-reviewer.yml
index 4cad68abb0..4a1e2f7aa8 100644
--- a/.github/workflows/ai-code-reviewer.yml
+++ b/.github/workflows/ai-code-reviewer.yml
@@ -106,8 +106,8 @@ jobs:
# SHA-256 verify guards against CDN tampering.
# To update: cut a new release on Friendly-AI-Reviewer, then update
# REVIEWER_COMMIT and REVIEWER_SHA256 below.
- REVIEWER_COMMIT="e7fe618a8a28831dfcd5a3227ebbf667b3d3c43b"
- REVIEWER_SHA256="2d613a562bf4631b394d826fdc164510097d16ac5355c996edcdf2a36c3346fe"
+ REVIEWER_COMMIT="e7fe618a8a28831dfcd5a3227ebbf667b3d3c43b" # DevSkim: ignore DS173237 - pinned public commit SHA, not a secret
+ REVIEWER_SHA256="2d613a562bf4631b394d826fdc164510097d16ac5355c996edcdf2a36c3346fe" # DevSkim: ignore DS173237 - public integrity checksum, not a secret
curl -fsSL "https://raw.githubusercontent.com/LearningCircuit/Friendly-AI-Reviewer/${REVIEWER_COMMIT}/ai-reviewer.sh" -o ai-reviewer.sh
printf '%s %s\n' "$REVIEWER_SHA256" ai-reviewer.sh | sha256sum -c -
chmod +x ai-reviewer.sh
diff --git a/tests/notifications/test_notification_webhook_dns_pin.py b/tests/notifications/test_notification_webhook_dns_pin.py
index 7da278edc6..cdcbdb7bc0 100644
--- a/tests/notifications/test_notification_webhook_dns_pin.py
+++ b/tests/notifications/test_notification_webhook_dns_pin.py
@@ -139,7 +139,7 @@ def _start_server(redirect_to=None, tls_cert=None):
server = HTTPServer(("127.0.0.1", 0), handler)
if tls_cert is not None:
cert_file, key_file = tls_cert
- ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
+ ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
ctx.load_cert_chain(certfile=cert_file, keyfile=key_file)
server.socket = ctx.wrap_socket(server.socket, server_side=True)
threading.Thread(target=server.serve_forever, daemon=True).start()
diff --git a/tests/security/test_password_verifier_primitive.py b/tests/security/test_password_verifier_primitive.py
index 95acc9eca8..3c8ece7ca2 100644
--- a/tests/security/test_password_verifier_primitive.py
+++ b/tests/security/test_password_verifier_primitive.py
@@ -262,7 +262,7 @@ def test_rerecording_same_password_still_rotates_salt():
# ---------------------------------------------------------------------------
-def test_cached_engine_trusted_unencrypted_mode_ignores_password():
+def test_cached_engine_trusted_unencrypted_mode_ignores_password(): # DevSkim: ignore DS101155 - "trusted" is a test-name word; no TLS/certificate code here
mgr = make_manager(has_encryption=False)
username = "user_unencrypted"
# No verifier is ever recorded in this test -- unencrypted mode must not