~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(ci): create centralized security-release-gate.yml
LearningCircuit85ebf6d809ad
diff --git a/.github/workflows/container-security.yml b/.github/workflows/container-security.ymlindex cf313840ae..7b268addd6 100644--- a/.github/workflows/container-security.yml+++ b/.github/workflows/container-security.yml@@ -1,11 +1,8 @@name: Container Securityon:- workflow_call: # Allow calling from release workflow+ workflow_call: # Called by security-release-gate.ymlworkflow_dispatch:- schedule:- # Run container security scan daily at 4 AM UTC- - cron: '0 4 * * *'permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissionsdiff --git a/.github/workflows/owasp-zap-scan.yml b/.github/workflows/owasp-zap-scan.ymlindex 7e78c4fe5a..107e62437f 100644--- a/.github/workflows/owasp-zap-scan.yml+++ b/.github/workflows/owasp-zap-scan.yml@@ -1,14 +1,11 @@name: OWASP ZAP Security Scan-# Baseline and API scans run daily (moved from push/PR to reduce CI load).+# Baseline and API scans - called by security-release-gate.yml# Full scan is in owasp-zap-full-scan.yml.on:- workflow_call: # Allow calling from release workflow+ workflow_call: # Called by security-release-gate.ymlworkflow_dispatch:- schedule:- # Run ZAP baseline and API scans daily at 3:30 AM UTC- - cron: '30 3 * * *'# Restrict top-level permissions (jobs define their own)permissions: {}diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 03e8b97da1..a502d1c2c3 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -11,34 +11,16 @@ on:permissions: {} # Minimal permissions at workflow level for OSSF Scorecardjobs:- # Run all security scans on the release code- security-tests:- uses: ./.github/workflows/security-tests.yml- permissions:- contents: read-- semgrep-scan:- uses: ./.github/workflows/semgrep.yml- permissions:- contents: read- security-events: write- actions: read-- container-security:- uses: ./.github/workflows/container-security.yml+ # Security gate: run all security scans on the release code+ security-gate:+ uses: ./.github/workflows/security-release-gate.ymlpermissions:contents: readsecurity-events: writeactions: read- owasp-zap-scan:- uses: ./.github/workflows/owasp-zap-scan.yml- permissions:- contents: read- security-events: write-build:- needs: [security-tests, semgrep-scan, container-security, owasp-zap-scan]+ needs: [security-gate]runs-on: ubuntu-latestoutputs:version: ${{ steps.version.outputs.version }}diff --git a/.github/workflows/security-release-gate.yml b/.github/workflows/security-release-gate.ymlnew file mode 100644index 0000000000..549d1eb8fb--- /dev/null+++ b/.github/workflows/security-release-gate.yml@@ -0,0 +1,100 @@+name: Security Release Gate++# Single workflow that runs all security scans.+# Used by release workflow and also runs daily to catch issues early.++on:+ workflow_call: # Called by release.yml+ workflow_dispatch: # Manual trigger+ schedule:+ # Run daily at 2 AM UTC to catch security issues early+ - cron: '0 2 * * *'++permissions: {} # Minimal top-level for OSSF Scorecard++jobs:+ # Run all security scans in parallel+ security-tests:+ uses: ./.github/workflows/security-tests.yml+ permissions:+ contents: read++ semgrep-scan:+ uses: ./.github/workflows/semgrep.yml+ permissions:+ contents: read+ security-events: write+ actions: read++ container-security:+ uses: ./.github/workflows/container-security.yml+ permissions:+ contents: read+ security-events: write+ actions: read++ owasp-zap-scan:+ uses: ./.github/workflows/owasp-zap-scan.yml+ permissions:+ contents: read+ security-events: write++ # Summary job that reports overall status+ security-gate-summary:+ name: Security Gate Summary+ runs-on: ubuntu-latest+ needs: [security-tests, semgrep-scan, container-security, owasp-zap-scan]+ if: always()+ permissions:+ contents: read++ steps:+ - name: Harden the runner (Audit all outbound calls)+ uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0+ with:+ egress-policy: audit++ - name: Check security scan results+ run: |+ echo "## Security Release Gate Results" >> "$GITHUB_STEP_SUMMARY"+ echo "" >> "$GITHUB_STEP_SUMMARY"++ FAILED=""++ # Check each job result+ if [ "${{ needs.security-tests.result }}" = "success" ]; then+ echo "✅ **Security Tests**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Security Tests**: ${{ needs.security-tests.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.semgrep-scan.result }}" = "success" ]; then+ echo "✅ **Semgrep Scan**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Semgrep Scan**: ${{ needs.semgrep-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.container-security.result }}" = "success" ]; then+ echo "✅ **Container Security**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Container Security**: ${{ needs.container-security.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.owasp-zap-scan.result }}" = "success" ]; then+ echo "✅ **OWASP ZAP Scan**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **OWASP ZAP Scan**: ${{ needs.owasp-zap-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ echo "" >> "$GITHUB_STEP_SUMMARY"++ if [ -n "$FAILED" ]; then+ echo "❌ **Security gate failed** - Release blocked until issues are resolved." >> "$GITHUB_STEP_SUMMARY"+ exit 1+ else+ echo "✅ **All security scans passed** - Release approved from security perspective." >> "$GITHUB_STEP_SUMMARY"+ fidiff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.ymlindex dfc02f126f..28f0de9904 100644--- a/.github/workflows/security-tests.yml+++ b/.github/workflows/security-tests.yml@@ -1,11 +1,8 @@name: Security Testson:- workflow_call: # Allow calling from release workflow+ workflow_call: # Called by security-release-gate.ymlworkflow_dispatch:- schedule:- # Run security tests daily at 2 AM UTC- - cron: '0 2 * * *'permissions:contents: readdiff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.ymlindex fc63d8b3b7..4dd0f941de 100644--- a/.github/workflows/semgrep.yml+++ b/.github/workflows/semgrep.yml@@ -1,11 +1,8 @@name: Semgrep Security Scanon:- workflow_call: # Allow calling from release workflow+ workflow_call: # Called by security-release-gate.ymlworkflow_dispatch:- schedule:- # Run security scan daily at 5 AM UTC- - cron: '0 5 * * *'permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions