~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 template injection vulnerabilities in workflow files
LearningCircuite1e664b85a0a
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.ymlindex 7d16bd0273..d1a732b419 100644--- a/.github/workflows/docker-publish.yml+++ b/.github/workflows/docker-publish.yml@@ -201,12 +201,16 @@ jobs:- name: Determine version tagid: version+ env:+ EVENT_NAME: ${{ github.event_name }}+ DISPATCH_TAG: ${{ github.event.client_payload.tag }}+ RELEASE_TAG: ${{ github.event.release.tag_name }}run: |set -euo pipefail- if [ "${{ github.event_name }}" = "repository_dispatch" ]; then- TAG="${{ github.event.client_payload.tag }}"+ if [ "$EVENT_NAME" = "repository_dispatch" ]; then+ TAG="$DISPATCH_TAG"else- TAG="${{ github.event.release.tag_name }}"+ TAG="$RELEASE_TAG"fiecho "tag=$TAG" >> "$GITHUB_OUTPUT"# Extract version without 'v' prefix@@ -230,10 +234,11 @@ jobs:id: manifestenv:DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}+ META_TAGS: ${{ steps.meta.outputs.tags }}run: |set -euo pipefail# Get the tags from metadata (newline separated)- TAGS="${{ steps.meta.outputs.tags }}"+ TAGS="$META_TAGS"# Store first tag for attestationFIRST_TAG=$(echo "$TAGS" | head -n 1)diff --git a/.github/workflows/e2e-research-test.yml b/.github/workflows/e2e-research-test.ymlindex 0c4bc27a6a..782b294255 100644--- a/.github/workflows/e2e-research-test.yml+++ b/.github/workflows/e2e-research-test.yml@@ -34,9 +34,11 @@ jobs:- name: Get PR diffif: github.event.label.name == 'ldr_research'+ env:+ BASE_REF: ${{ github.event.pull_request.base.ref }}run: |- git fetch origin ${{ github.event.pull_request.base.ref }}- git diff origin/${{ github.event.pull_request.base.ref }}...HEAD --no-color > diff.txt+ git fetch origin "$BASE_REF"+ git diff "origin/$BASE_REF...HEAD" --no-color > diff.txtecho "Diff size: $(wc -c < diff.txt) bytes"- name: Setup Pythondiff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.ymlindex 719a731802..532f58c512 100644--- a/.github/workflows/file-whitelist-check.yml+++ b/.github/workflows/file-whitelist-check.yml@@ -27,8 +27,8 @@ jobs:fetch-depth: 0- name: Security checks for files+ env:+ GITHUB_EVENT_NAME: ${{ github.event_name }}+ GITHUB_BASE_REF: ${{ github.base_ref }}run: |- # Pass GitHub environment variables to the script- export GITHUB_EVENT_NAME="${{ github.event_name }}"- export GITHUB_BASE_REF="${{ github.base_ref }}".github/scripts/file-whitelist-check.shdiff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 783eeb5374..0f963b2648 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -423,19 +423,25 @@ jobs:subject-path: 'dist/*'- name: Pre-publish summary+ env:+ EVENT_NAME: ${{ github.event_name }}+ DISPATCH_TAG: ${{ github.event.client_payload.tag }}+ DISPATCH_PRERELEASE: ${{ github.event.client_payload.prerelease }}+ RELEASE_TAG: ${{ github.event.release.tag_name }}+ RELEASE_PRERELEASE: ${{ github.event.release.prerelease }}run: |echo "=== 🚀 Ready to Publish ==="echo ""echo "📦 Package Information:"# Handle both release event and repository_dispatch- if [ "${{ github.event_name }}" = "repository_dispatch" ]; then+ if [ "$EVENT_NAME" = "repository_dispatch" ]; thenecho " - Trigger: repository_dispatch"- echo " - Tag: ${{ github.event.client_payload.tag }}"- echo " - Prerelease: ${{ github.event.client_payload.prerelease }}"+ echo " - Tag: $DISPATCH_TAG"+ echo " - Prerelease: $DISPATCH_PRERELEASE"elseecho " - Trigger: release"- echo " - Tag: ${{ github.event.release.tag_name }}"- echo " - Prerelease: ${{ github.event.release.prerelease }}"+ echo " - Tag: $RELEASE_TAG"+ echo " - Prerelease: $RELEASE_PRERELEASE"fiecho ""echo "📁 Package files to publish:"diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 646aa22828..fad2ffbc21 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -37,8 +37,11 @@ jobs:- name: Determine versionid: version+ env:+ EVENT_NAME: ${{ github.event_name }}+ GIT_REF: ${{ github.ref }}run: |- if [[ "${{ github.event_name }}" = "push" && "${{ github.ref }}" =~ ^refs/tags/ ]]; then+ if [[ "$EVENT_NAME" = "push" && "$GIT_REF" =~ ^refs/tags/ ]]; then# Extract version from tag (remove 'v' prefix)VERSION="${GITHUB_REF#refs/tags/v}"else@@ -50,28 +53,31 @@ jobs:- name: Check if release already existsid: check_release+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ VERSION_TAG: ${{ steps.version.outputs.tag }}run: |- if gh release view "${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then- echo "Release ${{ steps.version.outputs.tag }} already exists, skipping..."+ if gh release view "$VERSION_TAG" >/dev/null 2>&1; then+ echo "Release $VERSION_TAG already exists, skipping..."echo "exists=true" >> "$GITHUB_OUTPUT"else- echo "Release ${{ steps.version.outputs.tag }} does not exist, proceeding..."+ echo "Release $VERSION_TAG does not exist, proceeding..."echo "exists=false" >> "$GITHUB_OUTPUT"fi- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- name: Verify version matches __version__.pyif: steps.check_release.outputs.exists == 'false'+ env:+ EXPECTED_VERSION: ${{ steps.version.outputs.version }}run: |VERSION_FILE_VERSION=$(grep -oP '(?<=__version__ = ")[^"]*' src/local_deep_research/__version__.py)- if [ "$VERSION_FILE_VERSION" != "${{ steps.version.outputs.version }}" ]; then+ if [ "$VERSION_FILE_VERSION" != "$EXPECTED_VERSION" ]; thenecho "Error: Version mismatch!"- echo "Tag/input version: ${{ steps.version.outputs.version }}"+ echo "Tag/input version: $EXPECTED_VERSION"echo "__version__.py version: $VERSION_FILE_VERSION"exit 1fi- echo "Version verified: ${{ steps.version.outputs.version }}"+ echo "Version verified: $EXPECTED_VERSION"- name: Generate SBOM (Software Bill of Materials)if: steps.check_release.outputs.exists == 'false'diff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.ymlindex 7a9ab4f071..054d7738ee 100644--- a/.github/workflows/responsive-ui-tests-enhanced.yml+++ b/.github/workflows/responsive-ui-tests-enhanced.yml@@ -207,10 +207,13 @@ jobs:- name: Upload to GitHub Pages (if available)if: always() && github.event_name == 'pull_request'continue-on-error: true+ env:+ PR_NUMBER: ${{ github.event.pull_request.number }}+ VIEWPORT: ${{ matrix.viewport }}run: |# This requires GitHub Pages to be enabled for the repo# Create a branch for the screenshots- BRANCH_NAME="pr-screenshots-${{ github.event.pull_request.number }}-${{ matrix.viewport }}"+ BRANCH_NAME="pr-screenshots-$PR_NUMBER-$VIEWPORT"cd tests/ui_tests/responsivegit initdiff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.ymlindex ac894bfe2b..62345d8669 100644--- a/.github/workflows/sync-main-to-dev.yml+++ b/.github/workflows/sync-main-to-dev.yml@@ -122,11 +122,11 @@ jobs:- name: Push successful mergeif: steps.check_sync.outputs.sync_needed == 'true' && steps.merge_attempt.outputs.merge_conflicts == 'false'+ env:+ BRANCH_NAME: ${{ steps.create_branch.outputs.branch_name }}run: |- BRANCH_NAME="${{ steps.create_branch.outputs.branch_name }}"-# Push the merged changes- git push origin $BRANCH_NAME+ git push origin "$BRANCH_NAME"- name: Create or Update Pull Requestif: steps.check_sync.outputs.sync_needed == 'true'@@ -436,17 +436,21 @@ jobs:- name: Log final statusif: steps.check_sync.outputs.sync_needed == 'true'+ env:+ HAS_CONFLICTS: ${{ steps.merge_attempt.outputs.merge_conflicts }}+ SAFE_TO_MERGE: ${{ steps.verify_commits.outputs.safe_to_merge }}+ WAS_APPROVED: ${{ steps.auto_approve.outputs.approved }}run: |echo "========================================="echo "Sync Workflow Summary:"echo "========================================="- if [ "${{ steps.merge_attempt.outputs.merge_conflicts }}" == "true" ]; then+ if [ "$HAS_CONFLICTS" == "true" ]; thenecho "⚠️ Status: PR created with CONFLICTS"echo "Action required: Manual conflict resolution needed"- elif [ "${{ steps.verify_commits.outputs.safe_to_merge }}" != "true" ]; then+ elif [ "$SAFE_TO_MERGE" != "true" ]; thenecho "⚠️ Status: PR created but contains unexpected commits"echo "Action required: Manual review needed"- elif [ "${{ steps.auto_approve.outputs.approved }}" == "true" ]; then+ elif [ "$WAS_APPROVED" == "true" ]; thenecho "✅ Status: PR created, approved, and auto-merge enabled"echo "The PR will merge automatically once checks pass"elsediff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.ymlindex 51027dbf11..453644eb3c 100644--- a/.github/workflows/update-dependencies.yml+++ b/.github/workflows/update-dependencies.yml@@ -43,8 +43,10 @@ jobs:cache: true- name: 👚 Update to latest compatible versions+ env:+ PDM_ARGS: ${{ inputs.pdm_args || '-u --save-compatible --no-sync --no-self' }}run: |- pdm update ${{ inputs.pdm_args || '-u --save-compatible --no-sync --no-self' }}+ pdm update $PDM_ARGS- name: 📝 Create pull requestuses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8