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: 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.yml
index a336264f24..124ce3b7e5 100644
--- a/.github/workflows/accessibility-compliance-tests.yml
+++ b/.github/workflows/accessibility-compliance-tests.yml
@@ -16,7 +16,7 @@ jobs:
timeout-minutes: 20
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up PDM
uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
diff --git a/.github/workflows/ai-code-reviewer.yml b/.github/workflows/ai-code-reviewer.yml
index b4c182b8ef..6734b6f602 100644
--- a/.github/workflows/ai-code-reviewer.yml
+++ b/.github/workflows/ai-code-reviewer.yml
@@ -20,7 +20,7 @@ jobs:
issues: write
steps:
- name: Checkout repository
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml
index 70551b238e..a102065755 100644
--- a/.github/workflows/api-tests.yml
+++ b/.github/workflows/api-tests.yml
@@ -36,7 +36,7 @@ jobs:
--health-retries 5
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/check-env-vars.yml b/.github/workflows/check-env-vars.yml
index 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-latest
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 8919167cdb..89d4a6e6f0 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -22,8 +22,6 @@ on:
permissions:
contents: read
security-events: write
- packages: read # Required to fetch CodeQL packs
- actions: read # Required for private repositories
jobs:
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: false
matrix:
@@ -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-languages
steps:
- 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.yml
index b33337c793..c1ab3b881e 100644
--- a/.github/workflows/container-security.yml
+++ b/.github/workflows/container-security.yml
@@ -13,25 +13,19 @@ on:
permissions:
contents: read
security-events: write
- actions: read # Required for GitHub Actions cache
jobs:
trivy-scan:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ security-events: write
+ actions: read
+ packages: write
steps:
- - 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 Buildx
uses: 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 tab
uses: github/codeql-action/upload-sarif@32f7c15247fa6542dc765bd40f6a15dc2caeed89 # v4.31.2
@@ -68,7 +64,7 @@ jobs:
with:
name: trivy-scan-results
path: trivy-results.sarif
- retention-days: 7 # Reduced for security
+ retention-days: 30
- name: Display Trivy summary
if: always()
@@ -87,10 +83,12 @@ jobs:
# Additional job for Dockerfile security analysis
dockerfile-scan:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
steps:
- name: Checkout code
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run Trivy config scan on Dockerfile
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master
@@ -107,7 +105,7 @@ jobs:
with:
name: trivy-config-results
path: trivy-config-results.sarif
- retention-days: 7 # Reduced for security
+ retention-days: 30
- name: Display config scan summary
if: always()
diff --git a/.github/workflows/critical-ui-tests.yml b/.github/workflows/critical-ui-tests.yml
index 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 databases
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up PDM
uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
diff --git a/.github/workflows/danger-zone-alert.yml b/.github/workflows/danger-zone-alert.yml
index 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 checkout
pull-requests: write
checks: write
@@ -26,7 +25,7 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml
index 6312a7cc45..44d808c4d3 100644
--- a/.github/workflows/devskim.yml
+++ b/.github/workflows/devskim.yml
@@ -13,16 +13,19 @@ on:
permissions:
contents: read
security-events: write
- actions: read # Required for workflow status checks
jobs:
devskim-scan:
name: DevSkim Security Linter
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ security-events: write
+ actions: read
steps:
- name: Checkout repository
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run DevSkim security linter
uses: microsoft/DevSkim-Action@4b5047945a44163b94642a1cecc0d93a3f428cc6 # v1.0.16
@@ -46,7 +49,7 @@ jobs:
with:
name: devskim-results
path: devskim-results.sarif
- retention-days: 7 # Reduced for security
+ retention-days: 30
- name: Generate summary
run: |
diff --git a/.github/workflows/docker-multiarch-test.yml b/.github/workflows/docker-multiarch-test.yml
index 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.0
with:
fetch-depth: 0
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index 849b57b8f3..4083a61b24 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -3,11 +3,10 @@ name: Publish Docker image
on:
release:
types: [created]
- repository_dispatch:
- types: [publish-docker]
permissions:
- contents: read # Only need read access for Docker Hub publishing
+ contents: read
+ packages: write
jobs:
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.0
with:
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.0
with:
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.0
with:
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 vulnerabilities
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master
with:
image-ref: local-deep-research:security-scan
severity: 'CRITICAL,HIGH'
- ignore-unfixed: true # Only fail on vulnerabilities with available fixes
exit-code: '1'
- name: Upload Trivy scan results from release
@@ -135,7 +133,7 @@ jobs:
with:
name: trivy-release-scan
path: trivy-release-scan.sarif
- retention-days: 7 # Reduced for security
+ retention-days: 90
create-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.0
with:
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 Docker
id: meta
uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/local-deep-research
tags: |
- 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 manifest
run: |
diff --git a/.github/workflows/enhanced-tests.yml b/.github/workflows/enhanced-tests.yml
index 8ce52915af..7892612b9d 100644
--- a/.github/workflows/enhanced-tests.yml
+++ b/.github/workflows/enhanced-tests.yml
@@ -24,7 +24,7 @@ jobs:
name: Enhanced Test Framework
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build Docker image
run: docker build --target ldr-test -t ldr-test .
diff --git a/.github/workflows/extended-ui-tests.yml b/.github/workflows/extended-ui-tests.yml
index 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 Suite
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.yml
index 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.0
with:
fetch-depth: 0
diff --git a/.github/workflows/followup-research-tests.yml b/.github/workflows/followup-research-tests.yml
index 8b01372f22..9cfbfc6deb 100644
--- a/.github/workflows/followup-research-tests.yml
+++ b/.github/workflows/followup-research-tests.yml
@@ -26,7 +26,7 @@ jobs:
timeout-minutes: 30
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml
index 3f81ce77f2..b82ace36dc 100644
--- a/.github/workflows/gitleaks.yml
+++ b/.github/workflows/gitleaks.yml
@@ -13,15 +13,18 @@ on:
permissions:
contents: read
security-events: write
- actions: read # Required for workflow status checks
jobs:
gitleaks:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ security-events: write
+ actions: read
steps:
- name: Checkout code
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # Fetch full history for comprehensive secret scanning
diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.yml
index 392b1bef92..98e700b9ee 100644
--- a/.github/workflows/hadolint.yml
+++ b/.github/workflows/hadolint.yml
@@ -19,16 +19,19 @@ on:
permissions:
contents: read
security-events: write
- pull-requests: write # Required for PR comments
jobs:
hadolint:
name: Hadolint Dockerfile Analysis
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ security-events: write
+ pull-requests: write
steps:
- name: Checkout repository
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run Hadolint on Dockerfile
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
@@ -52,7 +55,7 @@ jobs:
with:
name: hadolint-results
path: hadolint.sarif
- retention-days: 7 # Reduced for security
+ retention-days: 30
- name: Run Hadolint with detailed output
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
diff --git a/.github/workflows/infrastructure-tests.yml b/.github/workflows/infrastructure-tests.yml
index 9900fade2b..c2bcd2c297 100644
--- a/.github/workflows/infrastructure-tests.yml
+++ b/.github/workflows/infrastructure-tests.yml
@@ -23,7 +23,7 @@ jobs:
name: Run Infrastructure Tests
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build Docker image
run: docker build --target ldr-test -t ldr-test .
diff --git a/.github/workflows/llm-tests.yml b/.github/workflows/llm-tests.yml
index 9cebb99ad3..84fb347f4d 100644
--- a/.github/workflows/llm-tests.yml
+++ b/.github/workflows/llm-tests.yml
@@ -28,7 +28,7 @@ jobs:
name: LLM Unit Tests
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build Docker image
run: docker build --target ldr-test -t ldr-test .
@@ -86,7 +86,7 @@ jobs:
needs: llm-unit-tests
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build Docker image
run: docker build --target ldr-test -t ldr-test .
diff --git a/.github/workflows/metrics-analytics-tests.yml b/.github/workflows/metrics-analytics-tests.yml
index 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 Suite
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/ossar.yml b/.github/workflows/ossar.yml
index 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 OSSAR
diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml
index 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.0
with:
persist-credentials: false
@@ -41,7 +41,7 @@ jobs:
results_file: results.sarif
results_format: sarif
# Publish results to enable scorecard badges
- publish_results: true
+ publish_results: false
- name: Upload OSSF Scorecard results to GitHub Security
uses: github/codeql-action/upload-sarif@32f7c15247fa6542dc765bd40f6a15dc2caeed89 # v4.31.2
@@ -54,4 +54,4 @@ jobs:
with:
name: ossf-scorecard-results
path: results.sarif
- retention-days: 7 # Reduced for security
+ retention-days: 90
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 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 Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 60b8ed1ab9..f3fbe63cb7 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -3,8 +3,6 @@ name: Publish to PyPI
on:
release:
types: [created]
- repository_dispatch:
- types: [publish-pypi]
permissions:
contents: read
@@ -24,7 +22,7 @@ jobs:
contents: read
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Check for frontend assets
id: check
@@ -115,7 +113,7 @@ jobs:
contents: read
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install build dependencies
run: |
@@ -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 == true
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
with:
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 == false
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 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.0
with:
- 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 version
id: version
@@ -79,29 +76,31 @@ jobs:
fi
echo "Version verified: ${{ steps.version.outputs.version }}"
- - name: Generate SBOM (Software Bill of Materials)
+ - name: Generate changelog
if: steps.check_release.outputs.exists == 'false'
+ id: changelog
run: |
- 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 CLI
if: 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 CLI
gh 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_FLAG
env:
# Use PAT instead of GITHUB_TOKEN to trigger downstream workflows
GITHUB_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: Summary
run: |
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.yml
index 7f019f0d3f..c0a50522db 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -34,7 +34,7 @@ jobs:
- 5432:5432
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python 3.11
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.yml
index 8a916bd564..e613c598c4 100644
--- a/.github/workflows/sync-main-to-dev.yml
+++ b/.github/workflows/sync-main-to-dev.yml
@@ -6,9 +6,6 @@ on:
- main
workflow_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.0
with:
fetch-depth: 0
# SECURITY: Dual-token strategy for workflow file modifications
diff --git a/.github/workflows/text-optimization-tests.yml b/.github/workflows/text-optimization-tests.yml
index 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 Tests
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml
index 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 # v6
with:
python-version: '3.12'
- name: Set up Node.js
- uses: actions/setup-node@v6
+ uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version: '18'
- name: Set up PDM
- uses: pdm-project/setup-pdm@v4
+ uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
with:
python-version: '3.12'
@@ -66,7 +69,6 @@ jobs:
- name: Start application server
run: |
export LDR_USE_FALLBACK_LLM=true
- export DISABLE_RATE_LIMITING=true
export PYTHONPATH=$PWD/src:$PYTHONPATH
echo "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 screenshots
if: always()
- uses: actions/[email protected]
+ uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: ui-test-screenshots
path: tests/ui_tests/screenshots/
- name: Upload UI test results
if: always()
- uses: actions/[email protected]
+ uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: ui-test-results
path: tests/ui_tests/results/
diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml
index 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 PRs
steps:
- name: 📰 Checkout
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: dev
diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.yml
index 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 cases
permissions:
- contents: read # Restrict top-level, job escalates as needed
- pull-requests: read
+ contents: write
+ pull-requests: write
jobs:
version-check:
runs-on: ubuntu-latest
- permissions:
- contents: write # Required for pushing version bump
- pull-requests: write # Required for PR comments
steps:
- name: Checkout code
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
diff --git a/src/local_deep_research/__version__.py b/src/local_deep_research/__version__.py
index 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"