~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: Pin all remaining GitHub Actions to commit SHAs (comprehensive supply chain security) (#1122)
LearningCircuitd1f33fda1620
diff --git a/.github/workflows/accessibility-compliance-tests.yml b/.github/workflows/accessibility-compliance-tests.ymlindex a336264f24..124ce3b7e5 100644--- a/.github/workflows/accessibility-compliance-tests.yml+++ b/.github/workflows/accessibility-compliance-tests.yml@@ -16,7 +16,7 @@ jobs:timeout-minutes: 20steps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up PDMuses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4diff --git a/.github/workflows/ai-code-reviewer.yml b/.github/workflows/ai-code-reviewer.ymlindex b4c182b8ef..6734b6f602 100644--- a/.github/workflows/ai-code-reviewer.yml+++ b/.github/workflows/ai-code-reviewer.yml@@ -20,7 +20,7 @@ jobs:issues: writesteps:- name: Checkout repository- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.ymlindex 70551b238e..a102065755 100644--- a/.github/workflows/api-tests.yml+++ b/.github/workflows/api-tests.yml@@ -36,7 +36,7 @@ jobs:--health-retries 5steps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Pythonuses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/check-env-vars.yml b/.github/workflows/check-env-vars.ymlindex 376f94214c..ae2cbb9501 100644--- a/.github/workflows/check-env-vars.yml+++ b/.github/workflows/check-env-vars.yml@@ -21,7 +21,7 @@ jobs:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Pythonuses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlindex 8919167cdb..89d4a6e6f0 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -22,8 +22,6 @@ on:permissions:contents: readsecurity-events: write- packages: read # Required to fetch CodeQL packs- actions: read # Required for private repositoriesjobs:analyze:@@ -34,6 +32,17 @@ jobs:# - https://gh.io/using-larger-runners (GitHub.com only)# Consider using larger runners or machines with greater resources for possible analysis time improvements.runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}+ permissions:+ # required for all workflows+ security-events: write++ # required to fetch internal or private CodeQL packs+ packages: read++ # only required for workflows in private repositories+ actions: read+ contents: read+strategy:fail-fast: falsematrix:@@ -52,7 +61,7 @@ jobs:# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languagessteps:- name: Checkout repository- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0# Add any setup steps before running the `github/codeql-action/init` action.# This includes steps like installing compilers or runtimes (`actions/setup-node`diff --git a/.github/workflows/container-security.yml b/.github/workflows/container-security.ymlindex b33337c793..c1ab3b881e 100644--- a/.github/workflows/container-security.yml+++ b/.github/workflows/container-security.yml@@ -13,25 +13,19 @@ on:permissions:contents: readsecurity-events: write- actions: read # Required for GitHub Actions cachejobs:trivy-scan:runs-on: ubuntu-latest+ permissions:+ contents: read+ security-events: write+ actions: read+ packages: writesteps:- - name: Free up disk space- run: |- # Remove unnecessary files to free up disk space for Docker image scanning- sudo rm -rf /usr/share/dotnet- sudo rm -rf /usr/local/lib/android- sudo rm -rf /opt/ghc- sudo rm -rf /opt/hostedtoolcache/CodeQL- sudo docker image prune -af- df -h-- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Docker Buildxuses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3@@ -54,6 +48,8 @@ jobs:output: 'trivy-results.sarif'severity: 'CRITICAL,HIGH,MEDIUM'scan-type: 'image'+ scan-ref: '.'+ list-all-pkgs: true- name: Upload Trivy scan results to GitHub Security tabuses: github/codeql-action/upload-sarif@32f7c15247fa6542dc765bd40f6a15dc2caeed89 # v4.31.2@@ -68,7 +64,7 @@ jobs:with:name: trivy-scan-resultspath: trivy-results.sarif- retention-days: 7 # Reduced for security+ retention-days: 30- name: Display Trivy summaryif: always()@@ -87,10 +83,12 @@ jobs:# Additional job for Dockerfile security analysisdockerfile-scan:runs-on: ubuntu-latest+ permissions:+ contents: readsteps:- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Run Trivy config scan on Dockerfileuses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master@@ -107,7 +105,7 @@ jobs:with:name: trivy-config-resultspath: trivy-config-results.sarif- retention-days: 7 # Reduced for security+ retention-days: 30- name: Display config scan summaryif: always()diff --git a/.github/workflows/critical-ui-tests.yml b/.github/workflows/critical-ui-tests.ymlindex 7dab56eb99..bb4dc9ee78 100644--- a/.github/workflows/critical-ui-tests.yml+++ b/.github/workflows/critical-ui-tests.yml@@ -18,7 +18,7 @@ jobs:# No services needed - using SQLite databasessteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up PDMuses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4diff --git a/.github/workflows/danger-zone-alert.yml b/.github/workflows/danger-zone-alert.ymlindex 363309a0ed..6152170050 100644--- a/.github/workflows/danger-zone-alert.yml+++ b/.github/workflows/danger-zone-alert.yml@@ -16,7 +16,6 @@ on:- '**/crypto*.py'permissions:- contents: read # Required for checkoutpull-requests: writechecks: write@@ -26,7 +25,7 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.ymlindex 6312a7cc45..44d808c4d3 100644--- a/.github/workflows/devskim.yml+++ b/.github/workflows/devskim.yml@@ -13,16 +13,19 @@ on:permissions:contents: readsecurity-events: write- actions: read # Required for workflow status checksjobs:devskim-scan:name: DevSkim Security Linterruns-on: ubuntu-latest+ permissions:+ contents: read+ security-events: write+ actions: readsteps:- name: Checkout repository- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Run DevSkim security linteruses: microsoft/DevSkim-Action@4b5047945a44163b94642a1cecc0d93a3f428cc6 # v1.0.16@@ -46,7 +49,7 @@ jobs:with:name: devskim-resultspath: devskim-results.sarif- retention-days: 7 # Reduced for security+ retention-days: 30- name: Generate summaryrun: |diff --git a/.github/workflows/docker-multiarch-test.yml b/.github/workflows/docker-multiarch-test.ymlindex b9802ddeba..78296f87b7 100644--- a/.github/workflows/docker-multiarch-test.yml+++ b/.github/workflows/docker-multiarch-test.yml@@ -29,7 +29,7 @@ jobs:steps:- name: Check out the repo- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.ymlindex 849b57b8f3..4083a61b24 100644--- a/.github/workflows/docker-publish.yml+++ b/.github/workflows/docker-publish.yml@@ -3,11 +3,10 @@ name: Publish Docker imageon:release:types: [created]- repository_dispatch:- types: [publish-docker]permissions:- contents: read # Only need read access for Docker Hub publishing+ contents: read+ packages: writejobs:build-amd64:@@ -24,7 +23,7 @@ jobs:egress-policy: audit- name: Check out the repo- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0@@ -62,7 +61,7 @@ jobs:egress-policy: audit- name: Check out the repo- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0@@ -93,7 +92,7 @@ jobs:steps:- name: Check out the repo- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0@@ -120,13 +119,12 @@ jobs:output: 'trivy-release-scan.sarif'exit-code: '0'- # Separate scan that fails build only on fixable HIGH/CRITICAL vulnerabilities- - name: Check for fixable HIGH/CRITICAL vulnerabilities+ # Separate scan that fails build only on HIGH/CRITICAL vulnerabilities+ - name: Check for HIGH/CRITICAL vulnerabilitiesuses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # masterwith:image-ref: local-deep-research:security-scanseverity: 'CRITICAL,HIGH'- ignore-unfixed: true # Only fail on vulnerabilities with available fixesexit-code: '1'- name: Upload Trivy scan results from release@@ -135,7 +133,7 @@ jobs:with:name: trivy-release-scanpath: trivy-release-scan.sarif- retention-days: 7 # Reduced for security+ retention-days: 90create-manifest:name: Create Multi-Platform Manifest@@ -150,7 +148,7 @@ jobs:egress-policy: audit- name: Check out the repo- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0@@ -163,31 +161,15 @@ jobs:username: ${{ secrets.DOCKER_USERNAME }}password: ${{ secrets.DOCKER_PASSWORD }}- - name: Determine version tag- id: version- run: |- if [ "${{ github.event_name }}" = "repository_dispatch" ]; then- TAG="${{ github.event.client_payload.tag }}"- else- TAG="${{ github.event.release.tag_name }}"- fi- echo "tag=$TAG" >> "$GITHUB_OUTPUT"- # Extract version without 'v' prefix- VERSION="${TAG#v}"- echo "version=$VERSION" >> "$GITHUB_OUTPUT"- # Extract major.minor- MAJOR_MINOR=$(echo "$VERSION" | cut -d. -f1,2)- echo "major_minor=$MAJOR_MINOR" >> "$GITHUB_OUTPUT"-- name: Extract metadata for Dockerid: metauses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5with:images: ${{ secrets.DOCKER_USERNAME }}/local-deep-researchtags: |- type=raw,value=${{ steps.version.outputs.version }}- type=raw,value=${{ steps.version.outputs.major_minor }}- type=raw,value=latest+ type=semver,pattern={{version}}+ type=semver,pattern={{major}}.{{minor}}+ latest- name: Create and push multi-platform manifestrun: |diff --git a/.github/workflows/enhanced-tests.yml b/.github/workflows/enhanced-tests.ymlindex 8ce52915af..7892612b9d 100644--- a/.github/workflows/enhanced-tests.yml+++ b/.github/workflows/enhanced-tests.yml@@ -24,7 +24,7 @@ jobs:name: Enhanced Test Frameworksteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Build Docker imagerun: docker build --target ldr-test -t ldr-test .diff --git a/.github/workflows/extended-ui-tests.yml b/.github/workflows/extended-ui-tests.ymlindex 5384db081f..4893048903 100644--- a/.github/workflows/extended-ui-tests.yml+++ b/.github/workflows/extended-ui-tests.yml@@ -19,7 +19,7 @@ jobs:name: Extended UI Test Suitesteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Pythonuses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.ymlindex f765bbcaf7..9e61a320a1 100644--- a/.github/workflows/file-whitelist-check.yml+++ b/.github/workflows/file-whitelist-check.yml@@ -16,7 +16,7 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0diff --git a/.github/workflows/followup-research-tests.yml b/.github/workflows/followup-research-tests.ymlindex 8b01372f22..9cfbfc6deb 100644--- a/.github/workflows/followup-research-tests.yml+++ b/.github/workflows/followup-research-tests.yml@@ -26,7 +26,7 @@ jobs:timeout-minutes: 30steps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Pythonuses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.ymlindex 3f81ce77f2..b82ace36dc 100644--- a/.github/workflows/gitleaks.yml+++ b/.github/workflows/gitleaks.yml@@ -13,15 +13,18 @@ on:permissions:contents: readsecurity-events: write- actions: read # Required for workflow status checksjobs:gitleaks:runs-on: ubuntu-latest+ permissions:+ contents: read+ security-events: write+ actions: readsteps:- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0 # Fetch full history for comprehensive secret scanningdiff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.ymlindex 392b1bef92..98e700b9ee 100644--- a/.github/workflows/hadolint.yml+++ b/.github/workflows/hadolint.yml@@ -19,16 +19,19 @@ on:permissions:contents: readsecurity-events: write- pull-requests: write # Required for PR commentsjobs:hadolint:name: Hadolint Dockerfile Analysisruns-on: ubuntu-latest+ permissions:+ contents: read+ security-events: write+ pull-requests: writesteps:- name: Checkout repository- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Run Hadolint on Dockerfileuses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0@@ -52,7 +55,7 @@ jobs:with:name: hadolint-resultspath: hadolint.sarif- retention-days: 7 # Reduced for security+ retention-days: 30- name: Run Hadolint with detailed outputuses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0diff --git a/.github/workflows/infrastructure-tests.yml b/.github/workflows/infrastructure-tests.ymlindex 9900fade2b..c2bcd2c297 100644--- a/.github/workflows/infrastructure-tests.yml+++ b/.github/workflows/infrastructure-tests.yml@@ -23,7 +23,7 @@ jobs:name: Run Infrastructure Testssteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Build Docker imagerun: docker build --target ldr-test -t ldr-test .diff --git a/.github/workflows/llm-tests.yml b/.github/workflows/llm-tests.ymlindex 9cebb99ad3..84fb347f4d 100644--- a/.github/workflows/llm-tests.yml+++ b/.github/workflows/llm-tests.yml@@ -28,7 +28,7 @@ jobs:name: LLM Unit Testssteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Build Docker imagerun: docker build --target ldr-test -t ldr-test .@@ -86,7 +86,7 @@ jobs:needs: llm-unit-testssteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Build Docker imagerun: docker build --target ldr-test -t ldr-test .diff --git a/.github/workflows/metrics-analytics-tests.yml b/.github/workflows/metrics-analytics-tests.ymlindex 84d30fe190..638edfa64f 100644--- a/.github/workflows/metrics-analytics-tests.yml+++ b/.github/workflows/metrics-analytics-tests.yml@@ -24,7 +24,7 @@ jobs:name: Metrics & Analytics Test Suitesteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Pythonuses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/ossar.yml b/.github/workflows/ossar.ymlindex 667dd2a311..56f67fbb22 100644--- a/.github/workflows/ossar.yml+++ b/.github/workflows/ossar.yml@@ -31,7 +31,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0# Run open source static analysis tools- name: Run OSSARdiff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.ymlindex 16f956d139..d019f15d55 100644--- a/.github/workflows/ossf-scorecard.yml+++ b/.github/workflows/ossf-scorecard.yml@@ -31,7 +31,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false@@ -41,7 +41,7 @@ jobs:results_file: results.sarifresults_format: sarif# Publish results to enable scorecard badges- publish_results: true+ publish_results: false- name: Upload OSSF Scorecard results to GitHub Securityuses: github/codeql-action/upload-sarif@32f7c15247fa6542dc765bd40f6a15dc2caeed89 # v4.31.2@@ -54,4 +54,4 @@ jobs:with:name: ossf-scorecard-resultspath: results.sarif- retention-days: 7 # Reduced for security+ retention-days: 90diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.ymlindex edc8ddc1df..260155cf89 100644--- a/.github/workflows/pre-commit.yml+++ b/.github/workflows/pre-commit.yml@@ -15,7 +15,7 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Pythonuses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 60b8ed1ab9..f3fbe63cb7 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -3,8 +3,6 @@ name: Publish to PyPIon:release:types: [created]- repository_dispatch:- types: [publish-pypi]permissions:contents: read@@ -24,7 +22,7 @@ jobs:contents: readsteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Check for frontend assetsid: check@@ -115,7 +113,7 @@ jobs:contents: readsteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Install build dependenciesrun: |@@ -407,16 +405,9 @@ jobs:echo "=== 🚀 Ready to Publish ==="echo ""echo "📦 Package Information:"- # Handle both release event and repository_dispatch- if [ "${{ github.event_name }}" = "repository_dispatch" ]; then- echo " - Trigger: repository_dispatch"- echo " - Tag: ${{ github.event.client_payload.tag }}"- echo " - Prerelease: ${{ github.event.client_payload.prerelease }}"- else- echo " - Trigger: release"- echo " - Tag: ${{ github.event.release.tag_name }}"- echo " - Prerelease: ${{ github.event.release.prerelease }}"- fi+ echo " - Release type: ${{ github.event.release.prerelease && 'Pre-release (Test PyPI)' || 'Production (PyPI)' }}"+ echo " - Tag: ${{ github.event.release.tag_name }}"+ echo " - Release name: ${{ github.event.release.name }}"echo ""echo "📁 Package files to publish:"ls -lh dist/@@ -424,11 +415,11 @@ jobs:echo "✅ All checks passed - proceeding with publication"- name: Publish to Test PyPI- if: (github.event_name == 'release' && github.event.release.prerelease == true) || (github.event_name == 'repository_dispatch' && github.event.client_payload.prerelease == true)+ if: github.event.release.prerelease == trueuses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1with:repository-url: https://test.pypi.org/legacy/- name: Publish to PyPI- if: (github.event_name == 'release' && github.event.release.prerelease != true) || (github.event_name == 'repository_dispatch' && github.event.client_payload.prerelease != true)+ if: github.event.release.prerelease == falseuses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 75ba470175..cdeeb6a9b3 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -31,12 +31,9 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:- fetch-depth: 0 # Fetch full history for version determination- # Use PAT_TOKEN to ensure releases trigger downstream workflows- # (GITHUB_TOKEN doesn't trigger other workflows by design)- token: ${{ secrets.PAT_TOKEN }}+ fetch-depth: 0 # Fetch full history for changelog generation- name: Determine versionid: version@@ -79,29 +76,31 @@ jobs:fiecho "Version verified: ${{ steps.version.outputs.version }}"- - name: Generate SBOM (Software Bill of Materials)+ - name: Generate changelogif: steps.check_release.outputs.exists == 'false'+ id: changelogrun: |- echo "=== Generating Software Bill of Materials ==="+ # Get the previous tag+ PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")- # Install Trivy for SBOM generation- wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -- echo "deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list- sudo apt-get update- sudo apt-get install trivy+ if [ -z "$PREVIOUS_TAG" ]; then+ echo "No previous tag found, generating changelog from all commits"+ COMMITS=$(git log --pretty=format:"- %s (%h)" --no-merges)+ else+ echo "Generating changelog since $PREVIOUS_TAG"+ COMMITS=$(git log "${PREVIOUS_TAG}..HEAD" --pretty=format:"- %s (%h)" --no-merges)+ fi- # Generate SBOM in SPDX format (JSON)- trivy fs --format spdx-json --output sbom-spdx.json .- echo "✅ Generated SBOM in SPDX-JSON format"+ # Create changelog content+ cat > changelog.md << EOF+ ## What's Changed- # Generate SBOM in CycloneDX format (JSON)- trivy fs --format cyclonedx --output sbom-cyclonedx.json .- echo "✅ Generated SBOM in CycloneDX format"+ $COMMITS- # Display summary- echo ""- echo "SBOM files generated:"- ls -lh sbom-*.json+ **Full Changelog**: https://github.com/LearningCircuit/local-deep-research/compare/${PREVIOUS_TAG}...${{ steps.version.outputs.tag }}+ EOF++ echo "changelog_file=changelog.md" >> "$GITHUB_OUTPUT"- name: Create GitHub Release using gh CLIif: steps.check_release.outputs.exists == 'false'@@ -112,55 +111,17 @@ jobs:PRERELEASE_FLAG="--prerelease"fi- # Create the release using GitHub CLI with auto-generated notes- # Uses .github/release.yml for categorization based on PR labels+ # Create the release using GitHub CLIgh release create "${{ steps.version.outputs.tag }}" \--title "Release ${{ steps.version.outputs.version }}" \- --generate-notes \- $PRERELEASE_FLAG \- sbom-spdx.json \- sbom-cyclonedx.json+ --notes-file changelog.md \+ $PRERELEASE_FLAGenv:# Use PAT instead of GITHUB_TOKEN to trigger downstream workflowsGITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}- - name: Trigger Docker publish workflow- if: steps.check_release.outputs.exists == 'false'- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7- with:- github-token: ${{ secrets.PAT_TOKEN }}- script: |- await github.rest.repos.createDispatchEvent({- owner: context.repo.owner,- repo: context.repo.repo,- event_type: 'publish-docker',- client_payload: {- tag: '${{ steps.version.outputs.tag }}',- prerelease: ${{ github.event.inputs.prerelease || false }}- }- });- console.log('Triggered Docker publish workflow');-- - name: Trigger PyPI publish workflow- if: steps.check_release.outputs.exists == 'false'- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7- with:- github-token: ${{ secrets.PAT_TOKEN }}- script: |- await github.rest.repos.createDispatchEvent({- owner: context.repo.owner,- repo: context.repo.repo,- event_type: 'publish-pypi',- client_payload: {- tag: '${{ steps.version.outputs.tag }}',- prerelease: ${{ github.event.inputs.prerelease || false }}- }- });- console.log('Triggered PyPI publish workflow');-- name: Summaryrun: |echo "🎉 Release ${{ steps.version.outputs.version }} created successfully!"- echo "📋 Triggered PyPI and Docker publishing workflows via repository_dispatch"- echo "📦 SBOM files (SPDX, CycloneDX) attached to release"+ echo "📋 This will trigger PyPI and Docker publishing workflows"echo "🔍 Check the releases page: https://github.com/LearningCircuit/local-deep-research/releases"diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.ymlindex 7f019f0d3f..c0a50522db 100644--- a/.github/workflows/security-tests.yml+++ b/.github/workflows/security-tests.yml@@ -34,7 +34,7 @@ jobs:- 5432:5432steps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Python 3.11uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.ymlindex 8a916bd564..e613c598c4 100644--- a/.github/workflows/sync-main-to-dev.yml+++ b/.github/workflows/sync-main-to-dev.yml@@ -6,9 +6,6 @@ on:- mainworkflow_dispatch:-permissions:- contents: read # Restrict top-level, jobs can escalate as needed-jobs:sync-main-to-dev:runs-on: ubuntu-latest@@ -22,7 +19,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0# SECURITY: Dual-token strategy for workflow file modificationsdiff --git a/.github/workflows/text-optimization-tests.yml b/.github/workflows/text-optimization-tests.ymlindex dc76fddcf5..160a36ce77 100644--- a/.github/workflows/text-optimization-tests.yml+++ b/.github/workflows/text-optimization-tests.yml@@ -22,7 +22,7 @@ jobs:name: Text Optimization Module Testssteps:- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Pythonuses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.ymlindex 7c8b08c8a2..3e8cffbeaf 100644--- a/.github/workflows/ui-tests.yml+++ b/.github/workflows/ui-tests.yml@@ -13,6 +13,9 @@ on:- cron: '0 3 * * *'workflow_dispatch:+permissions:+ contents: read+jobs:ui-tests:runs-on: ubuntu-latest@@ -24,20 +27,20 @@ jobs:(github.event_name == 'pull_request' && (github.event.pull_request.base.ref == 'main' || github.event.pull_request.base.ref == 'dev'))steps:- - uses: actions/[email protected]+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0- name: Set up Python- uses: actions/setup-python@v6+ uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6with:python-version: '3.12'- name: Set up Node.js- uses: actions/setup-node@v6+ uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6with:node-version: '18'- name: Set up PDM- uses: pdm-project/setup-pdm@v4+ uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4with:python-version: '3.12'@@ -66,7 +69,6 @@ jobs:- name: Start application serverrun: |export LDR_USE_FALLBACK_LLM=true- export DISABLE_RATE_LIMITING=trueexport PYTHONPATH=$PWD/src:$PYTHONPATHecho "Starting web server..."pdm run python -m local_deep_research.web.app 2>&1 | tee server.log &@@ -107,14 +109,14 @@ jobs:- name: Upload UI test screenshotsif: always()- uses: actions/[email protected]+ uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0with:name: ui-test-screenshotspath: tests/ui_tests/screenshots/- name: Upload UI test resultsif: always()- uses: actions/[email protected]+ uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0with:name: ui-test-resultspath: tests/ui_tests/results/diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.ymlindex e1b81fcd93..53157f6685 100644--- a/.github/workflows/update-dependencies.yml+++ b/.github/workflows/update-dependencies.yml@@ -28,7 +28,7 @@ jobs:pull-requests: write # Required for creating PRssteps:- name: 📰 Checkout- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:ref: devdiff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.ymlindex 640088fc0d..a6fca46d1c 100644--- a/.github/workflows/version_check.yml+++ b/.github/workflows/version_check.yml@@ -15,18 +15,15 @@ on:workflow_dispatch: # Manual trigger for edge casespermissions:- contents: read # Restrict top-level, job escalates as needed- pull-requests: read+ contents: write+ pull-requests: writejobs:version-check:runs-on: ubuntu-latest- permissions:- contents: write # Required for pushing version bump- pull-requests: write # Required for PR commentssteps:- name: Checkout code- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:fetch-depth: 0token: ${{ secrets.PAT_TOKEN }}diff --git a/src/local_deep_research/__version__.py b/src/local_deep_research/__version__.pyindex 67bc602abf..70f1ec7a57 100644--- a/src/local_deep_research/__version__.py+++ b/src/local_deep_research/__version__.py@@ -1 +1 @@-__version__ = "1.3.0"+__version__ = "1.2.18"