~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: resolve final shellcheck violations in GitHub Actions workflows
LearningCircuitdae84f882d17
diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.ymlindex 7c0a772b29..60f25764b4 100644--- a/.github/workflows/api-tests.yml+++ b/.github/workflows/api-tests.yml@@ -102,7 +102,7 @@ jobs:if: always()run: |if [ -f server.pid ]; then- kill $(cat server.pid) || true+ kill "$(cat server.pid)" || truerm server.pidfidiff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.ymlindex ee84a534f0..cddd6562c1 100644--- a/.github/workflows/file-whitelist-check.yml+++ b/.github/workflows/file-whitelist-check.yml@@ -71,7 +71,7 @@ jobs:echo "🔍 Checking all files in PR commits from $GITHUB_BASE_REF to HEAD..."echo "🔧 DEBUG: Running git diff command..."- 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")echo "🔧 DEBUG: git diff found $(echo "$CHANGED_FILES" | wc -l) files"echo "🔧 DEBUG: Running git log command..."diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.ymlindex ca42376eda..42b1a46170 100644--- a/.github/workflows/ossf-scorecard.yml+++ b/.github/workflows/ossf-scorecard.yml@@ -59,32 +59,34 @@ jobs:- name: Display OSSF Scorecard summaryif: always()run: |- echo "## OSSF Scorecard Security Analysis" >> "$GITHUB_STEP_SUMMARY"- echo "" >> "$GITHUB_STEP_SUMMARY"- echo "✅ OSSF Scorecard analysis completed" >> "$GITHUB_STEP_SUMMARY"- echo "" >> "$GITHUB_STEP_SUMMARY"- echo "### What is OSSF Scorecard?" >> "$GITHUB_STEP_SUMMARY"- echo "OSSF Scorecard checks your repository for security best practices including:" >> "$GITHUB_STEP_SUMMARY"- echo "- **Branch Protection**: Ensures main branch has protection rules" >> "$GITHUB_STEP_SUMMARY"- echo "- **Code Review**: Checks that code changes are reviewed" >> "$GITHUB_STEP_SUMMARY"- echo "- **Signed Releases**: Verifies releases are cryptographically signed" >> "$GITHUB_STEP_SUMMARY"- echo "- **SAST Tools**: Confirms static analysis tools are enabled" >> "$GITHUB_STEP_SUMMARY"- echo "- **Dependency Updates**: Checks for automated dependency updates" >> "$GITHUB_STEP_SUMMARY"- echo "- **Vulnerability Alerts**: Verifies security alerts are enabled" >> "$GITHUB_STEP_SUMMARY"- echo "- **License**: Ensures repository has a license" >> "$GITHUB_STEP_SUMMARY"- echo "- **CI Tests**: Checks for automated testing" >> "$GITHUB_STEP_SUMMARY"- echo "- **Security Policy**: Verifies SECURITY.md exists" >> "$GITHUB_STEP_SUMMARY"- echo "- **Dangerous Workflows**: Detects potentially dangerous GitHub Actions" >> "$GITHUB_STEP_SUMMARY"- echo "" >> "$GITHUB_STEP_SUMMARY"- echo "📊 **Results:**" >> "$GITHUB_STEP_SUMMARY"- echo "- Detailed results uploaded to GitHub Security tab" >> "$GITHUB_STEP_SUMMARY"- echo "- SARIF file available in artifacts" >> "$GITHUB_STEP_SUMMARY"- echo "" >> "$GITHUB_STEP_SUMMARY"- echo "🔗 **Links:**" >> "$GITHUB_STEP_SUMMARY"- echo "- [Security Tab](https://github.com/${{ github.repository }}/security/code-scanning)" >> "$GITHUB_STEP_SUMMARY"- echo "- [OSSF Scorecard Badge](https://securityscorecards.dev/viewer/?uri=github.com/${{ github.repository }})" >> "$GITHUB_STEP_SUMMARY"- echo "" >> "$GITHUB_STEP_SUMMARY"- echo "💡 **Add Badge to README:**" >> "$GITHUB_STEP_SUMMARY"- echo '```markdown' >> "$GITHUB_STEP_SUMMARY"- echo "[](https://securityscorecards.dev/viewer/?uri=github.com/${{ github.repository }})" >> "$GITHUB_STEP_SUMMARY"- echo '```' >> "$GITHUB_STEP_SUMMARY"+ {+ echo "## OSSF Scorecard Security Analysis"+ echo ""+ echo "✅ OSSF Scorecard analysis completed"+ echo ""+ echo "### What is OSSF Scorecard?"+ echo "OSSF Scorecard checks your repository for security best practices including:"+ echo "- **Branch Protection**: Ensures main branch has protection rules"+ echo "- **Code Review**: Checks that code changes are reviewed"+ echo "- **Signed Releases**: Verifies releases are cryptographically signed"+ echo "- **SAST Tools**: Confirms static analysis tools are enabled"+ echo "- **Dependency Updates**: Checks for automated dependency updates"+ echo "- **Vulnerability Alerts**: Verifies security alerts are enabled"+ echo "- **License**: Ensures repository has a license"+ echo "- **CI Tests**: Checks for automated testing"+ echo "- **Security Policy**: Verifies SECURITY.md exists"+ echo "- **Dangerous Workflows**: Detects potentially dangerous GitHub Actions"+ echo ""+ echo "📊 **Results:**"+ echo "- Detailed results uploaded to GitHub Security tab"+ echo "- SARIF file available in artifacts"+ echo ""+ echo "🔗 **Links:**"+ echo "- [Security Tab](https://github.com/${{ github.repository }}/security/code-scanning)"+ echo "- [OSSF Scorecard Badge](https://securityscorecards.dev/viewer/?uri=github.com/${{ github.repository }})"+ echo ""+ echo "💡 **Add Badge to README:**"+ echo '```markdown'+ echo "[](https://securityscorecards.dev/viewer/?uri=github.com/${{ github.repository }})"+ echo '```'+ } >> "$GITHUB_STEP_SUMMARY"diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 3d6647ec6e..06cb9bb2f0 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -34,10 +34,10 @@ jobs:- name: Determine versionid: versionrun: |- if [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref }}" == refs/tags/* ]]; then+ if [ "${{ github.event_name }}" == "push" ] && [[ "${{ github.ref }}" == refs/tags/* ]]; then# Extract version from tag (remove 'v' prefix)VERSION="${GITHUB_REF#refs/tags/v}"- elif [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/main" ]; then+ elif [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then# Get version from __version__.py for main branch pushesVERSION=$(grep -oP '(?<=__version__ = ")[^"]*' src/local_deep_research/__version__.py)elsediff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.ymlindex d42ac787f0..7c0cdc7188 100644--- a/.github/workflows/semgrep.yml+++ b/.github/workflows/semgrep.yml@@ -178,8 +178,8 @@ jobs:- name: Display Semgrep summaryif: always()run: |- echo "## Semgrep Security Scan Summary" >> $GITHUB_STEP_SUMMARY- echo "" >> $GITHUB_STEP_SUMMARY+ echo "## Semgrep Security Scan Summary" >> "$GITHUB_STEP_SUMMARY"+ echo "" >> "$GITHUB_STEP_SUMMARY"if [ -f semgrep-combined-results.json ]; then# Count results by severity@@ -188,23 +188,23 @@ jobs:MEDIUM=$(python3 -c "import json; data=json.load(open('semgrep-combined-results.json')); print(len([r for r in data['results'] if r.get('metadata', {}).get('severity') == 'INFO']))" 2>/dev/null || echo "0")TOTAL=$(python3 -c "import json; data=json.load(open('semgrep-combined-results.json')); print(len(data['results']))" 2>/dev/null || echo "0")- echo "📊 **Scan Results:**" >> $GITHUB_STEP_SUMMARY- echo "- **Critical:** $CRITICAL" >> $GITHUB_STEP_SUMMARY- echo "- **High:** $HIGH" >> $GITHUB_STEP_SUMMARY- echo "- **Medium:** $MEDIUM" >> $GITHUB_STEP_SUMMARY- echo "- **Total:** $TOTAL" >> $GITHUB_STEP_SUMMARY- echo "" >> $GITHUB_STEP_SUMMARY+ echo "📊 **Scan Results:**" >> "$GITHUB_STEP_SUMMARY"+ echo "- **Critical:** $CRITICAL" >> "$GITHUB_STEP_SUMMARY"+ echo "- **High:** $HIGH" >> "$GITHUB_STEP_SUMMARY"+ echo "- **Medium:** $MEDIUM" >> "$GITHUB_STEP_SUMMARY"+ echo "- **Total:** $TOTAL" >> "$GITHUB_STEP_SUMMARY"+ echo "" >> "$GITHUB_STEP_SUMMARY"if [ "$CRITICAL" -gt 0 ] || [ "$HIGH" -gt 0 ]; then- echo "⚠️ **Action Required:** Critical or High severity issues found" >> $GITHUB_STEP_SUMMARY+ echo "⚠️ **Action Required:** Critical or High severity issues found" >> "$GITHUB_STEP_SUMMARY"else- echo "✅ **No Critical or High severity issues found**" >> $GITHUB_STEP_SUMMARY+ echo "✅ **No Critical or High severity issues found**" >> "$GITHUB_STEP_SUMMARY"fi- echo "" >> $GITHUB_STEP_SUMMARY- echo "📋 **Detailed Results:**" >> $GITHUB_STEP_SUMMARY- echo "- Security tab: Results uploaded to GitHub Security tab" >> $GITHUB_STEP_SUMMARY- echo "- Artifacts: Full JSON and SARIF reports available" >> $GITHUB_STEP_SUMMARY+ echo "" >> "$GITHUB_STEP_SUMMARY"+ echo "📋 **Detailed Results:**" >> "$GITHUB_STEP_SUMMARY"+ echo "- Security tab: Results uploaded to GitHub Security tab" >> "$GITHUB_STEP_SUMMARY"+ echo "- Artifacts: Full JSON and SARIF reports available" >> "$GITHUB_STEP_SUMMARY"else- echo "❌ Semgrep scan failed or no results generated" >> $GITHUB_STEP_SUMMARY+ echo "❌ Semgrep scan failed or no results generated" >> "$GITHUB_STEP_SUMMARY"fidiff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.ymlindex fd60ad4f9c..682fe04b5c 100644--- a/.github/workflows/version_check.yml+++ b/.github/workflows/version_check.yml@@ -26,7 +26,7 @@ jobs:env:HEAD_REF: ${{ github.head_ref }}run: |- git checkout ${HEAD_REF}+ git checkout "${HEAD_REF}"- name: Set up Pythonuses: actions/setup-python@v6@@ -39,7 +39,7 @@ jobs:HEAD_REF: ${{ github.head_ref }}BASE_REF: ${{ github.base_ref }}run: |- if ! git diff origin/${BASE_REF}..HEAD -G"__version__" | grep -E '\+.*__version__.*='; then+ if ! git diff "origin/${BASE_REF}..HEAD" -G"__version__" | grep -E '\+.*__version__.*='; thenecho "Version not updated. Auto-bumping patch version..."# Get current version@@ -69,7 +69,7 @@ jobs:git commit -m "chore: auto-bump version to $new_version"# Push to the PR branch- git push origin ${HEAD_REF}+ git push origin "${HEAD_REF}"echo "Version automatically bumped to $new_version"else