~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
ci: add license scanning to release gate (#2930)
LearningCircuit37e6dcadca8b
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.ymlindex 3e5f5ad802..6cb98cd3bf 100644--- a/.github/workflows/dependency-review.yml+++ b/.github/workflows/dependency-review.yml@@ -48,8 +48,9 @@ jobs:with:# Fail on high and critical severity vulnerabilitiesfail-on-severity: high- # Allow only known permissive licenses (allowlist is safer than denylist)- # All licenses below are enterprise-friendly and allow commercial use+ # Allow only known permissive + weak-copyleft licenses (ASF Category A + B)+ # All licenses below are commercially usable+ # LGPL is excluded per ASF Category X policyallow-licenses: >-MIT,Apache-2.0,@@ -57,8 +58,6 @@ jobs:BSD-3-Clause,ISC,MPL-2.0,- LGPL-2.1,- LGPL-3.0,Unlicense,CC0-1.0,CC-BY-3.0,diff --git a/.github/workflows/release-gate.yml b/.github/workflows/release-gate.ymlindex e79dbf52b1..c22c641c36 100644--- a/.github/workflows/release-gate.yml+++ b/.github/workflows/release-gate.yml@@ -179,6 +179,86 @@ jobs:security-events: writeactions: read+ # ============================================+ # License compliance (catches direct-to-main commits)+ # ============================================+ license-check:+ name: License Compliance Check+ runs-on: ubuntu-latest+ timeout-minutes: 15+ permissions:+ contents: read++ steps:+ - name: Harden the runner (Audit all outbound calls)+ uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0+ with:+ egress-policy: audit++ - name: Checkout code+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false++ - name: Set up Python+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ with:+ python-version: '3.11'++ - name: Install system dependencies for SQLCipher+ run: |+ sudo apt-get update+ sudo apt-get install -y libsqlcipher-dev++ - name: Set up PDM+ uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4.4+ with:+ python-version: '3.11'++ - name: Install dependencies+ run: pdm sync -d++ - name: Check Python dependency licenses+ run: |+ set -euo pipefail+ pdm run pip install pip-licenses+ echo "=== Python Dependency Licenses ==="+ pdm run pip-licenses --format=table+ echo ""+ echo "=== Checking against ASF Category A + B allowlist ==="+ # --partial-match: substring matching (pip-licenses reports both SPDX IDs and full names)+ # --allow-only: fails on any license not in the list (including UNKNOWN)+ # --ignore-packages: exceptions for packages with metadata issues or tri-licensing+ # chardet: LGPL-only orphan (not in pdm.lock, nothing imports it)+ # text-unidecode: tri-licensed Artistic/GPL/GPLv2+ (accepted under Artistic,+ # but combined string contains "GPL" which can't be allowlisted safely)+ # cookiecutter: actually BSD-3-Clause but reports UNKNOWN (metadata bug, dev-only dep)+ # pyphen: tri-licensed GPLv2+/LGPLv2+/MPL-1.1 (accepted under MPL-1.1,+ # but combined string contains "GPL" which can't be allowlisted safely)+ # NOTE: CC-BY uses version-specific entries to avoid matching CC-BY-NC/CC-BY-SA+ # NOTE: "Mozilla Public License 2.0" avoids matching MPL-1.0/1.1 (more restrictive)+ # NOTE: "Artistic-2.0" avoids matching Artistic-1.0 (ASF Category X)+ # See also: .github/workflows/dependency-review.yml (PR-time SPDX check)+ pdm run pip-licenses \+ --partial-match \+ --allow-only="Apache-2.0;Apache Software License;Apache License;Apache 2.0;MIT;MIT License;BSD-2-Clause;BSD-3-Clause;BSD License;ISC;ISC License;0BSD;Zlib;PSF-2.0;Python Software Foundation;Unlicense;CC0-1.0;CC-BY-3.0;CC-BY-4.0;Artistic-2.0;MPL-2.0;Mozilla Public License 2.0;HPND;Historical Permission Notice;MIT-CMU;OFL-1.1;BlueOak-1.0.0;Public Domain;Boost;Unicode" \+ --ignore-packages chardet text-unidecode cookiecutter pyphen++ - name: Check npm dependency licenses+ run: |+ set -euo pipefail+ # Use allowlist (--onlyAllow) not denylist, consistent with Python check+ # UNLICENSED: the root package itself (private, no license field)+ NPM_ALLOWED="MIT;ISC;BSD-2-Clause;BSD-3-Clause;Apache-2.0;MPL-2.0;CC-BY-4.0;OFL-1.1;Zlib;Unlicense;CC0-1.0;0BSD;Python-2.0;BlueOak-1.0.0;UNLICENSED"+ echo "=== Root npm dependencies ==="+ npm ci --ignore-scripts+ npx license-checker --summary --onlyAllow "$NPM_ALLOWED"+ echo ""+ echo "=== Test npm dependencies ==="+ cd tests+ npm ci --ignore-scripts+ npx license-checker --summary --onlyAllow "$NPM_ALLOWED"+# ============================================# Runtime security validation# ============================================@@ -332,6 +412,8 @@ jobs:- nuclei-scan# Runtime security- security-headers-scan+ # License compliance+ - license-check# Backwards compatibility & migration tests- backwards-compatibility# Alert check (fails if any critical/high/medium alerts exist)@@ -387,6 +469,7 @@ jobs:check_result "${{ needs.zizmor-scan.result }}" || truecheck_result "${{ needs.gitleaks-scan.result }}" || truecheck_result "${{ needs.security-headers-scan.result }}" || true+ check_result "${{ needs.license-check.result }}" || truecheck_result "${{ needs.backwards-compatibility.result }}" || truecheck_result "${{ needs.check-code-scanning-alerts.result }}" || true@@ -584,6 +667,19 @@ jobs:FAILED="true"fi+ # ============================================+ # License compliance+ # ============================================+ echo ""+ echo "### License Compliance"++ if [ "${{ needs.license-check.result }}" = "success" ]; then+ echo "✅ **License Check**: Passed"+ else+ echo "❌ **License Check**: ${{ needs.license-check.result }}"+ FAILED="true"+ fi+# ============================================# Backwards compatibility & migration tests# ============================================