~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 shellcheck warnings in file-whitelist-check.sh
LearningCircuit556786707ce5
diff --git a/.github/scripts/file-whitelist-check.sh b/.github/scripts/file-whitelist-check.shindex c3e831c14b..526035f72e 100755--- a/.github/scripts/file-whitelist-check.sh+++ b/.github/scripts/file-whitelist-check.sh@@ -55,13 +55,13 @@ if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then# For PRs: check all files that would be added/modified in the entire PRecho "🔍 Checking files in PR from $GITHUB_BASE_REF to HEAD..."-CHANGED_FILES=$(git diff --name-only --diff-filter=AM origin/$GITHUB_BASE_REF..HEAD)+CHANGED_FILES=$(git diff --name-only --diff-filter=AM origin/"$GITHUB_BASE_REF"..HEAD)FILE_COUNT=$(echo "$CHANGED_FILES" | wc -l)echo "📋 Found $FILE_COUNT changed files with git diff"# Also get newly added files across all commits in the PR# Use a more robust approach that handles edge cases-ALL_NEW_FILES=$(git log --name-only --pretty=format: --diff-filter=A origin/$GITHUB_BASE_REF..HEAD 2>/dev/null | grep -v '^$' | sort | uniq || echo "")+ALL_NEW_FILES=$(git log --name-only --pretty=format: --diff-filter=A origin/"$GITHUB_BASE_REF"..HEAD 2>/dev/null | grep -v '^$' | sort | uniq || echo "")NEW_FILE_COUNT=$(echo "$ALL_NEW_FILES" | wc -w)echo "📋 Found $NEW_FILE_COUNT newly added files with git log"@@ -123,7 +123,7 @@ fiif [ -f "$file" ]; thenFILE_SIZE=$(stat -c%s "$file" 2>/dev/null || echo 0)if [ "$FILE_SIZE" -gt 1048576 ]; then-LARGE_FILES+=("$file ($(echo $FILE_SIZE | awk '{printf "%.1fMB", $1/1024/1024}'))")+LARGE_FILES+=("$file ($(echo "$FILE_SIZE" | awk '{printf "%.1fMB", $1/1024/1024}'))")fifi@@ -344,7 +344,7 @@ FILE_TYPE=$(file -b "$violation" 2>/dev/null || echo "unknown")echo " → File extension: .$FILE_EXT"echo " → File type: $FILE_TYPE"echo " → First few lines:"-head -3 "$violation" 2>/dev/null | while read line; do+head -3 "$violation" 2>/dev/null | while read -r line; doecho " $line"donefi@@ -394,7 +394,7 @@ echo " 🔍 EXAMINING: $violation"# Show the specific lines that triggered the detectionecho " → Suspicious content found:"-grep -n -iE "(api[_-]?key|secret|password|token|private[_-]?key)" "$violation" 2>/dev/null | head -5 | while read line; do+grep -n -iE "(api[_-]?key|secret|password|token|private[_-]?key)" "$violation" 2>/dev/null | head -5 | while read -r line; doecho " $line"done@@ -439,7 +439,7 @@ FILE_TYPE=$(file -b "$violation" 2>/dev/null || echo "unknown")FILE_SIZE=$(stat -c%s "$violation" 2>/dev/null || echo "unknown")echo " → File info: $FILE_TYPE (${FILE_SIZE} bytes)"echo " → Content preview:"-head -3 "$violation" 2>/dev/null | while read line; do+head -3 "$violation" 2>/dev/null | while read -r line; doecho " $line"donefi@@ -462,7 +462,7 @@ echo " 📊 $violation"# Show the specific lines with research dataecho " → Found hardcoded research data:"-grep -n -E "(research_id|session_id|query_id).*=.*[\"'][0-9a-f]{8,}[\"']" "$violation" 2>/dev/null | head -3 | while read line; do+grep -n -E "(research_id|session_id|query_id).*=.*[\"'][0-9a-f]{8,}[\"']" "$violation" 2>/dev/null | head -3 | while read -r line; doecho " $line"done@@ -483,7 +483,7 @@ echo " 🔐 $violation"# Show the specific lines with secret keysecho " → Found hardcoded Flask secret key:"-grep -n -E "SECRET_KEY.*=.*[\"'][^\"']{16,}[\"']" "$violation" 2>/dev/null | head -3 | while read line; do+grep -n -E "SECRET_KEY.*=.*[\"'][^\"']{16,}[\"']" "$violation" 2>/dev/null | head -3 | while read -r line; doecho " $line"done@@ -518,7 +518,7 @@ echo " 🎲 $violation"# Show sample of high entropy stringsecho " → Found high-entropy strings:"-grep -n -E "[a-zA-Z0-9+/]{40,}={0,2}|[a-f0-9]{40,}" "$violation" 2>/dev/null | head -3 | while read line; do+grep -n -E "[a-zA-Z0-9+/]{40,}={0,2}|[a-f0-9]{40,}" "$violation" 2>/dev/null | head -3 | while read -r line; do# Truncate long lines for readabilityecho " ${line:0:120}..."done@@ -540,7 +540,7 @@ echo " 📁 $violation"# Show the specific hardcoded pathsecho " → Found hardcoded paths:"-grep -n -E "(/home/[a-zA-Z0-9_-]+|/Users/[a-zA-Z0-9_-]+|C:\\\\Users\\\\[a-zA-Z0-9_-]+|/opt/|/var/|/etc/|/usr/local/)" "$violation" 2>/dev/null | head -5 | while read line; do+grep -n -E "(/home/[a-zA-Z0-9_-]+|/Users/[a-zA-Z0-9_-]+|C:\\\\Users\\\\[a-zA-Z0-9_-]+|/opt/|/var/|/etc/|/usr/local/)" "$violation" 2>/dev/null | head -5 | while read -r line; doecho " $line"done@@ -561,7 +561,7 @@ echo " 🌐 $violation"# Show the specific IP addressesecho " → Found hardcoded IP addresses:"-grep -n -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" "$violation" 2>/dev/null | grep -v -E "(127\.0\.0\.1|0\.0\.0\.0|localhost|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|255\.255\.255\.|192\.0\.2\.|198\.51\.100\.|203\.0\.113\.)" | head -5 | while read line; do+grep -n -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" "$violation" 2>/dev/null | grep -v -E "(127\.0\.0\.1|0\.0\.0\.0|localhost|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|255\.255\.255\.|192\.0\.2\.|198\.51\.100\.|203\.0\.113\.)" | head -5 | while read -r line; doecho " $line"done