~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: consolidate OSSF Scorecard security PRs with official GitHub Actions (#1830)
LearningCircuit4eae4b654f69
diff --git a/.github/SECURITY_SCORECARD.md b/.github/SECURITY_SCORECARD.mdindex 399eb935ba..5208f20a8c 100644--- a/.github/SECURITY_SCORECARD.md+++ b/.github/SECURITY_SCORECARD.md@@ -8,7 +8,8 @@ and documents any accepted risks or false positives.**Summary:**- ✅ 196/196 GitHub Actions pinned by SHA- ✅ 4/4 Container images pinned by digest-- ⚠️ 0/19 pip commands pinned by hash (version-pinned only - accepted risk)+- ✅ 3/3 Security tools use official SHA-pinned actions (checkov, pip-audit, zizmor)+- ⚠️ 0/17 pip commands pinned by hash (version-pinned only - accepted risk, checkov and pip-audit now use official actions)- ⚠️ 21/24 npm commands pinned (3 are operational commands)- ⚠️ 1 false positive for downloadThenRun- ⚠️ APT packages intentionally unpinned (base image controls versions)@@ -37,10 +38,24 @@ redis:alpine@sha256:8360960f5fb56a282d78686203dd875862cd4b52a4184c17ac753690252dnode:20-alpine@sha256:bcd88137d802e2482c9df3cdec71e0431857ebbbdba6973776b5593214056d86```+### Official GitHub Actions: COMPLIANT ✅++Several security tools now use official GitHub Actions with SHA-pinning,+which provides equivalent security to hash-pinned pip installs:++| Tool | Action | SHA |+|------|--------|-----|+| Checkov | `bridgecrewio/checkov-action` | `5051a5cfc7e4c71d95199f81ffafbb490c7e6213` |+| pip-audit | `pypa/gh-action-pip-audit` | `f9e2142a494d0d5d0d84e508e22a802af02cd086` |+| zizmor | `zizmorcore/zizmor-action` | (container-based with internal hash verification) |++These official actions run their tools in containers with internal integrity verification,+which OSSF Scorecard accepts as equivalent to hash pinning.+### pip install: VERSION-PINNED (Accepted Risk) ⚠️Scorecard flags `pip install package==version` because it prefers hash pinning.-All 19 flagged pip commands use exact version pinning.+The remaining pip commands use exact version pinning.**Flagged commands and their status:**@@ -48,21 +63,15 @@ All 19 flagged pip commands use exact version pinning.|------|------|---------|--------|| Dockerfile | 47-48 | `pip install pip==24.3.1 pdm==2.26.2 playwright==1.57.0` | Version-pinned || check-env-vars.yml | 41 | `pip install loguru==0.7.3 sqlalchemy==2.0.36...` | Version-pinned |-| checkov.yml | 46 | `pip install checkov==3.2.346` | Version-pinned || e2e-research-test.yml | 55 | `pip install -e .` | Local package (N/A) || fuzz.yml | 48-49 | `pip install pip==25.0` `pip install pdm==2.26.2` | Version-pinned || mypy-type-check.yml | 40,48,49 | `pip install pdm==2.26.2 mypy==1.14.1...` | Version-pinned || publish.yml | 137,326 | `pip install pdm==2.26.2` `pip install wheel==0.45.1` | Version-pinned || responsive-ui-tests-enhanced.yml | 88-89 | `pip install pip==25.0` `pip install -e .` | Version-pinned + local |-| security-tests.yml | 88 | `pip install pip-audit==2.10.0` | Version-pinned || semgrep.yml | 42 | `pip install semgrep==1.87.0` | Version-pinned || update-precommit-hooks.yml | 35-36 | `pip install pip==25.0 pre-commit-update==0.6.2` | Version-pinned || validate-image-pinning.yml | 74 | `pip install pyyaml==6.0.2` | Version-pinned |-**Note:** `zizmor-security.yml` was converted to use the official `zizmorcore/zizmor-action`,-which runs zizmor via a container with internal hash verification.-This resolves OSSF Scorecard alert #5609.-**Why we don't use hash pinning:**1. **Platform-specific hashes**: pip package hashes vary by Python version, OS, and architecture.diff --git a/.github/workflows/checkov.yml b/.github/workflows/checkov.ymlindex 439b086835..0357633945 100644--- a/.github/workflows/checkov.yml+++ b/.github/workflows/checkov.yml@@ -25,55 +25,70 @@ jobs:with:persist-credentials: false- - name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ # Using official Checkov action with SHA-pinning for OSSF Scorecard compliance+ # This replaces pip install checkov==3.2.346 with a container-based approach+ # that has internal hash verification+ - name: Run Checkov on Dockerfiles+ id: checkov-docker+ uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # masterwith:- python-version: '3.11'+ file: Dockerfile+ framework: dockerfile+ output_format: cli,sarif+ output_file_path: console,checkov-docker.sarif+ skip_check: CKV_DOCKER_3+ soft_fail: false- - name: Install Checkov- run: |- pip install checkov==3.2.346+ - name: Run Checkov on docker-compose.yml+ id: checkov-compose-main+ uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master+ with:+ file: docker-compose.yml+ framework: yaml+ output_format: cli,sarif+ output_file_path: console,checkov-compose-main.sarif+ soft_fail: false- - name: Run Checkov on Dockerfiles- id: checkov-docker- run: |- echo "=== Scanning Dockerfiles ==="- # Strict mode: fail on security issues- # Skip CKV_DOCKER_3 (USER instruction) - we use root for package installation- checkov --framework dockerfile \- --file Dockerfile \- --output cli \- --output sarif \- --output-file-path console,checkov-docker.sarif \- --skip-check CKV_DOCKER_3-- - name: Run Checkov on docker-compose files- id: checkov-compose- run: |- echo "=== Scanning docker-compose files ==="- # Strict mode: fail on security issues- # Use yaml framework for docker-compose files- checkov --framework yaml \- --file docker-compose.yml \- --file docker-compose.gpu.override.yml \- --file docker-compose.tts.yml \- --file docker-compose.unraid.yml \- --output cli \- --output sarif \- --output-file-path console,checkov-compose.sarif+ - name: Run Checkov on docker-compose.gpu.override.yml+ id: checkov-compose-gpu+ uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master+ with:+ file: docker-compose.gpu.override.yml+ framework: yaml+ output_format: cli,sarif+ output_file_path: console,checkov-compose-gpu.sarif+ soft_fail: false++ - name: Run Checkov on docker-compose.tts.yml+ id: checkov-compose-tts+ uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master+ with:+ file: docker-compose.tts.yml+ framework: yaml+ output_format: cli,sarif+ output_file_path: console,checkov-compose-tts.sarif+ soft_fail: false++ - name: Run Checkov on docker-compose.unraid.yml+ id: checkov-compose-unraid+ uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master+ with:+ file: docker-compose.unraid.yml+ framework: yaml+ output_format: cli,sarif+ output_file_path: console,checkov-compose-unraid.sarif+ soft_fail: false- name: Run Checkov on GitHub Actions workflowsid: checkov-workflows- run: |- echo "=== Scanning GitHub Actions workflows ==="- # Strict mode: fail on security issues- # Skip CKV_GHA_7 (pinned action versions) - handled by separate workflow- checkov --framework github_actions \- --directory .github/workflows \- --output cli \- --output sarif \- --output-file-path console,checkov-workflows.sarif \- --skip-check CKV_GHA_7+ uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master+ with:+ directory: .github/workflows+ framework: github_actions+ output_format: cli,sarif+ output_file_path: console,checkov-workflows.sarif+ skip_check: CKV_GHA_7+ soft_fail: false- name: Upload Dockerfile SARIF resultsif: always()@@ -83,12 +98,36 @@ jobs:category: checkov-dockerfilecontinue-on-error: true- - name: Upload docker-compose SARIF results+ - name: Upload docker-compose main SARIF results+ if: always()+ uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11+ with:+ sarif_file: checkov-compose-main.sarif+ category: checkov-compose-main+ continue-on-error: true++ - name: Upload docker-compose GPU SARIF results+ if: always()+ uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11+ with:+ sarif_file: checkov-compose-gpu.sarif+ category: checkov-compose-gpu+ continue-on-error: true++ - name: Upload docker-compose TTS SARIF results+ if: always()+ uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11+ with:+ sarif_file: checkov-compose-tts.sarif+ category: checkov-compose-tts+ continue-on-error: true++ - name: Upload docker-compose Unraid SARIF resultsif: always()uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11with:- sarif_file: checkov-compose.sarif- category: checkov-compose+ sarif_file: checkov-compose-unraid.sarif+ category: checkov-compose-unraidcontinue-on-error: true- name: Upload GitHub Actions SARIF resultsdiff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.ymlindex 21a7f934b6..9e28af0601 100644--- a/.github/workflows/security-tests.yml+++ b/.github/workflows/security-tests.yml@@ -85,17 +85,14 @@ jobs:sarif_file: bandit-results.sarifcategory: bandit- - name: Check for known vulnerabilities with Safety- run: |- # Use pip-audit as a more reliable alternative to deprecated safety check- # Strict mode: fail on known vulnerabilities- pip install pip-audit==2.10.0- pip-audit --format json --output safety-report.json || {- echo "::error::Known vulnerabilities detected in dependencies"- cat safety-report.json- exit 1- }- echo "Vulnerability scan completed - no issues found"+ # Using official pip-audit action with SHA-pinning for OSSF Scorecard compliance+ # This replaces pip install pip-audit==2.10.0 with container-based approach+ - name: Check for known vulnerabilities with pip-audit+ uses: pypa/gh-action-pip-audit@f9e2142a494d0d5d0d84e508e22a802af02cd086 # main+ with:+ inputs: .+ vulnerability-service: osv+ summary: true- name: Run SQL injection testsenv:@@ -185,10 +182,7 @@ jobs:python -c "import json; data=json.load(open('bandit-report.json')); print(f' High: {len([i for i in data.get(\"results\", []) if i[\"issue_severity\"] == \"HIGH\"])}'); print(f' Medium: {len([i for i in data.get(\"results\", []) if i[\"issue_severity\"] == \"MEDIUM\"])}'); print(f' Low: {len([i for i in data.get(\"results\", []) if i[\"issue_severity\"] == \"LOW\"])}')" || truefiecho ""- if [ -f safety-report.json ]; then- echo "Known Vulnerabilities:"- python -c "import json; data=json.load(open('safety-report.json')); print(f' Total: {len(data) if isinstance(data, list) else 0}')" || true- fi+ echo "pip-audit results: See job summary above (summary: true enabled)"- name: Upload security reportsif: always()@@ -198,4 +192,3 @@ jobs:path: |bandit-report.jsonbandit-results.sarif- safety-report.json