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: make secret detection less sensitive to avoid false positives

LearningCircuit99e2c46b7e74
diff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.yml
index 2b2a0ed285..2b13ac74f9 100644
--- a/.github/workflows/file-whitelist-check.yml
+++ b/.github/workflows/file-whitelist-check.yml
@@ -203,9 +203,10 @@ jobs:
# Only check for secrets if file is not whitelisted
if [ "$FILE_WHITELISTED" = "false" ]; then
# Enhanced secret detection with LLM provider keys
- if grep -iE "(api[_-]?key|secret|password|token|private[_-]?key|sk-[a-zA-Z0-9]{20,}|claude-[a-zA-Z0-9]{20,}|AIzaSy[a-zA-Z0-9_-]{33})" "$file" >/dev/null 2>&1; then
+ # Look for actual secret values (assignments, quotes), not just parameters
+ if grep -iE "(api[_-]?key|secret|password|token|private[_-]?key)\s*[=:]\s*['\"][^'\"]{8,}['\"]|sk-[a-zA-Z0-9]{20,}|claude-[a-zA-Z0-9]{20,}|AIzaSy[a-zA-Z0-9_-]{33}" "$file" >/dev/null 2>&1; then
# Additional check for obvious false positives
- if ! grep -iE "(example|sample|test|mock|placeholder|<.*>|\{\{.*\}\})" "$file" >/dev/null 2>&1; then
+ if ! grep -iE "(example|sample|test|mock|placeholder|<.*>|\{\{.*\}\}|Optional\[str\]|def __init__|password: Optional)" "$file" >/dev/null 2>&1; then
SECRET_VIOLATIONS+=("$file")
fi
fi