~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix(ci): eliminate false positives in file-whitelist-check.sh (#2381)
LearningCircuitbfdb1ddf02c2
diff --git a/.file-whitelist.txt b/.file-whitelist.txtindex 53ce1fffd7..e8f78d9130 100644--- a/.file-whitelist.txt+++ b/.file-whitelist.txt@@ -83,6 +83,7 @@^README$^Dockerfile$^\.file-whitelist\.txt$+^\.github/security/.*\.txt$# ---------------------------------------------------------------------------# Binary assets — explicit paths only.diff --git a/.github/scripts/file-whitelist-check.sh b/.github/scripts/file-whitelist-check.shindex 5954aa602c..c9f166a3b4 100755--- a/.github/scripts/file-whitelist-check.sh+++ b/.github/scripts/file-whitelist-check.sh@@ -20,6 +20,25 @@ while IFS= read -r line; doALLOWED_PATTERNS+=("$line")done < "$WHITELIST_FILE"+# Load per-check ignore lists (exact paths to skip for specific checks)+IGNORE_ENV_FILES=()+IGNORE_ENV_FILE="$REPO_ROOT/.github/security/ignore-env-files.txt"+if [ -f "$IGNORE_ENV_FILE" ]; then+ while IFS= read -r line; do+ [[ -z "$line" || "$line" =~ ^[[:space:]]*# ]] && continue+ IGNORE_ENV_FILES+=("$line")+ done < "$IGNORE_ENV_FILE"+fi++IGNORE_SUSPICIOUS_FILETYPES=()+IGNORE_SUSPICIOUS_FILE="$REPO_ROOT/.github/security/ignore-suspicious-filetypes.txt"+if [ -f "$IGNORE_SUSPICIOUS_FILE" ]; then+ while IFS= read -r line; do+ [[ -z "$line" || "$line" =~ ^[[:space:]]*# ]] && continue+ IGNORE_SUSPICIOUS_FILETYPES+=("$line")+ done < "$IGNORE_SUSPICIOUS_FILE"+fi+# Get list of files to checkif [ "${CHECK_ALL_FILES:-}" = "true" ]; thenecho "🔍 Checking ALL tracked files (release gate mode)..."@@ -160,8 +179,14 @@ fi# Check for environment filesif echo "$file" | grep -E "\.(env|env\.[a-zA-Z]+)$" >/dev/null; then+ENV_IGNORED=false+for epath in "${IGNORE_ENV_FILES[@]+${IGNORE_ENV_FILES[@]}}"; do+[ "$file" = "$epath" ] && ENV_IGNORED=true && break+done+if [ "$ENV_IGNORED" = "false" ]; thenENV_FILE_VIOLATIONS+=("$file")fi+fi# Check for high-entropy strings (potential keys/secrets)if [ -f "$file" ] && [ -r "$file" ]; then@@ -207,6 +232,13 @@ fi# 7. Suspicious file type check - detect potentially dangerous file typesif [ -f "$file" ]; then+# Check if file is in the suspicious-filetypes ignore list+FILETYPE_IGNORED=false+for fpath in "${IGNORE_SUSPICIOUS_FILETYPES[@]+${IGNORE_SUSPICIOUS_FILETYPES[@]}}"; do+[ "$file" = "$fpath" ] && FILETYPE_IGNORED=true && break+done++if [ "$FILETYPE_IGNORED" = "false" ]; then# Check for suspicious file extensionsif echo "$file" | grep -iE "\.(exe|dll|so|dylib|bin|deb|rpm|msi|dmg|pkg|app)$" >/dev/null; thenSUSPICIOUS_FILETYPE_VIOLATIONS+=("$file (executable/binary)")@@ -233,6 +265,7 @@ SUSPICIOUS_FILETYPE_VIOLATIONS+=("$file (build artifact/cache)")fififi+fidone <<< "$CHANGED_FILES"echo ""diff --git a/.github/security/ignore-env-files.txt b/.github/security/ignore-env-files.txtnew file mode 100644index 0000000000..0ce18cac3e--- /dev/null+++ b/.github/security/ignore-env-files.txt@@ -0,0 +1,4 @@+# Exact file paths excluded from the environment-file check.+# These are NOT actual .env files — they are templates/documentation.++src/local_deep_research/defaults/.env.templatediff --git a/.github/security/ignore-suspicious-filetypes.txt b/.github/security/ignore-suspicious-filetypes.txtnew file mode 100644index 0000000000..70b4462566--- /dev/null+++ b/.github/security/ignore-suspicious-filetypes.txt@@ -0,0 +1,5 @@+# Exact file paths excluded from the suspicious-file-type check.+# These are legitimate assets required by the application.++src/local_deep_research/web/static/sounds/error.mp3+src/local_deep_research/web/static/sounds/success.mp3diff --git a/.gitignore b/.gitignoreindex feb1de8090..99eb7025f6 100644--- a/.gitignore+++ b/.gitignore@@ -90,6 +90,7 @@!.github/**/*.sh!.github/**/*.py!.github/CODEOWNERS+!.github/security/*.txt!.gitleaksignore# Allow installer files only in installers directory (text scripts only)