Skip to content

~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.

fix: improve OSSF Scorecard Pinned-Dependencies score (#1427)

LearningCircuitb7851981a043
diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
index 6dba6a9f30..1c42bcd2cf 100644
--- a/.github/workflows/fuzz.yml
+++ b/.github/workflows/fuzz.yml
@@ -46,7 +46,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install pip==24.3.1
- pip install "pdm>=2.20,<3"
+ pip install pdm==2.26.2
pdm install --dev --no-editable
- name: Run fuzz tests
diff --git a/.github/workflows/mobile-ui-tests.yml b/.github/workflows/mobile-ui-tests.yml
index 796954b4db..68840d1992 100644
--- a/.github/workflows/mobile-ui-tests.yml
+++ b/.github/workflows/mobile-ui-tests.yml
@@ -45,6 +45,7 @@ jobs:
uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
with:
python-version: ${{ matrix.python-version }}
+ version: 2.26.2
cache: true
- name: Install Python dependencies
diff --git a/.github/workflows/mypy-type-check.yml b/.github/workflows/mypy-type-check.yml
index 1f892bed31..e77ff905ca 100644
--- a/.github/workflows/mypy-type-check.yml
+++ b/.github/workflows/mypy-type-check.yml
@@ -37,7 +37,7 @@ jobs:
- name: Install PDM
run: |
- pip install "pdm>=2.20,<3"
+ pip install pdm==2.26.2
- name: Install project dependencies
run: |
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 0f963b2648..e831856278 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -134,7 +134,7 @@ jobs:
- name: Install build dependencies
run: |
apt-get update && apt-get install -y libsqlcipher-dev build-essential
- pip install "pdm>=2.20,<3"
+ pip install pdm==2.26.2
- name: Download frontend artifacts
if: needs.build-frontend.outputs.has-frontend == 'true'
diff --git a/Dockerfile b/Dockerfile
index a2f93121df..ffa152e2fb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -42,8 +42,10 @@ RUN apt-get update && apt-get upgrade -y \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies and tools (pinned versions for reproducibility)
-RUN pip3 install --no-cache-dir --upgrade pip \
- && pip install --no-cache-dir pdm playwright
+# Pin pip, pdm, and playwright to specific versions for OSSF Scorecard compliance
+# Note: hishel<1.0.0 is required due to https://github.com/pdm-project/pdm/issues/3657
+RUN pip3 install --no-cache-dir pip==24.3.1 \
+ && pip install --no-cache-dir pdm==2.26.2 "hishel<1.0.0" playwright==1.57.0
# disable update check
ENV PDM_CHECK_UPDATE=false
@@ -65,8 +67,8 @@ FROM builder-base AS builder
# Install npm dependencies, build frontend, and install Python dependencies
# PDM will automatically select the correct SQLCipher package based on platform
-# Note: Using npm install instead of npm ci for broader Node.js version compatibility
-RUN npm install \
+# Using npm ci for reproducible builds with lockfile integrity verification
+RUN npm ci \
&& npm run build \
&& pdm install --prod --no-editable
@@ -119,17 +121,17 @@ RUN mkdir -p /app/puppeteer-cache && chmod -R 755 /app/puppeteer-cache
# Install Playwright with Chromium first (before npm packages)
RUN playwright install --with-deps chromium || echo "Playwright install failed, will use Puppeteer's Chrome"
-# Copy test package files
-COPY tests/api_tests_with_login/package.json /install/tests/api_tests_with_login/
-COPY tests/ui_tests/package.json /install/tests/ui_tests/
+# Copy test package files and lockfiles for npm ci
+COPY tests/api_tests_with_login/package.json tests/api_tests_with_login/package-lock.json /install/tests/api_tests_with_login/
+COPY tests/ui_tests/package.json tests/ui_tests/package-lock.json /install/tests/ui_tests/
# Install npm packages - Skip Puppeteer Chrome download since we have Playwright's Chrome
WORKDIR /install/tests/api_tests_with_login
ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
-RUN npm install
+RUN npm ci
WORKDIR /install/tests/ui_tests
-RUN npm install
+RUN npm ci
# Set CHROME_BIN to help Puppeteer find Chrome from Playwright
# Try to find and set Chrome binary path from Playwright's installation
diff --git a/src/local_deep_research/__version__.py b/src/local_deep_research/__version__.py
index 030c60680b..e05ff262b3 100644
--- a/src/local_deep_research/__version__.py
+++ b/src/local_deep_research/__version__.py
@@ -1 +1 @@
-__version__ = "1.3.21"
+__version__ = "1.3.22"