~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: consolidate security scans to release gate only
LearningCircuit7587e8f050ec
diff --git a/.github/workflows/checkov.yml b/.github/workflows/checkov.ymlindex 664e41920e..cb77e6fc36 100644--- a/.github/workflows/checkov.yml+++ b/.github/workflows/checkov.yml@@ -7,13 +7,8 @@ on:- 'Dockerfile'- 'docker-compose*.yml'- '.github/workflows/*.yml'- pull_request:- branches: [main, dev, develop]- paths:- - 'Dockerfile'- - 'docker-compose*.yml'- - '.github/workflows/*.yml'workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlpermissions: {} # Minimal top-level for OSSF Scorecard Token-Permissionsdiff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlindex 4df2ab4445..8a50bcf45d 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -14,10 +14,10 @@ name: "CodeQL Advanced"on:push:branches: [ "main", "dev" ]- pull_request:- branches: [ "main", "dev" ]schedule:- cron: '45 5 * * 0'+ workflow_call: # Called by security-release-gate.yml+ workflow_dispatch:permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissionsdiff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.ymlindex 7a421d8e3c..7843393a71 100644--- a/.github/workflows/dependency-review.yml+++ b/.github/workflows/dependency-review.yml@@ -1,6 +1,9 @@name: Dependency Reviewon:+ # NOTE: dependency-review requires PR context to compare changes.+ # It remains on PRs only and is NOT included in release gate.+ # The osv-scanner and npm-audit in release gate cover dependency vulnerabilities.pull_request:branches: [main, dev, develop]paths:diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.ymlindex 7ed81614af..b35e949348 100644--- a/.github/workflows/devskim.yml+++ b/.github/workflows/devskim.yml@@ -3,9 +3,8 @@ name: DevSkim Security Linteron:push:branches: [ main, dev ]- pull_request:- branches: [ main, dev ]workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlschedule:# Run security linter daily at 10 AM UTC- cron: '0 10 * * *'diff --git a/.github/workflows/dockle.yml b/.github/workflows/dockle.ymlindex 20afb369c7..6ed9b727b7 100644--- a/.github/workflows/dockle.yml+++ b/.github/workflows/dockle.yml@@ -2,6 +2,7 @@ name: Dockle Container Security Lintingon:workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlschedule:# Run weekly on Tuesday at 10 AM UTC (staggered with other container scans)- cron: '0 10 * * 2'diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.ymlindex 1ea2415f61..eab24cea60 100644--- a/.github/workflows/gitleaks.yml+++ b/.github/workflows/gitleaks.yml@@ -6,6 +6,7 @@ on:pull_request:branches: [ main, dev ]workflow_dispatch:+ workflow_call: # Also called by security-release-gate.ymlschedule:# Run secret scan daily at 3 AM UTC- cron: '0 3 * * *'diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.ymlindex c79d557e50..1b292db985 100644--- a/.github/workflows/hadolint.yml+++ b/.github/workflows/hadolint.yml@@ -6,12 +6,8 @@ on:paths:- '**/Dockerfile*'- '.github/workflows/hadolint.yml'- pull_request:- branches: [ main, dev ]- paths:- - '**/Dockerfile*'- - '.github/workflows/hadolint.yml'workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlschedule:# Run weekly on Tuesday at 9 AM UTC- cron: '0 9 * * 2'diff --git a/.github/workflows/npm-audit.yml b/.github/workflows/npm-audit.ymlindex b4dc26bc02..ce177bfcf8 100644--- a/.github/workflows/npm-audit.yml+++ b/.github/workflows/npm-audit.yml@@ -1,17 +1,6 @@name: npm Security Auditon:- pull_request:- branches: [main, dev, develop]- paths:- - 'package.json'- - 'package-lock.json'- - 'tests/ui_tests/package.json'- - 'tests/ui_tests/package-lock.json'- - '**.js'- - '**.ts'- - '**.jsx'- - '**.tsx'push:branches: [main, dev, develop]paths:@@ -20,6 +9,7 @@ on:- 'tests/ui_tests/package.json'- 'tests/ui_tests/package-lock.json'workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlpermissions:contents: readdiff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.ymlindex 899910147c..2ce5766f5a 100644--- a/.github/workflows/osv-scanner.yml+++ b/.github/workflows/osv-scanner.yml@@ -3,8 +3,8 @@# separate terms of service, privacy policy, and support# documentation.-# OSV-Scanner PR check which fails if new vulnerabilities are introduced.-# Scheduled scanning is in osv-scanner-scheduled.yml (split to prevent "skipped" noise on PRs).+# OSV-Scanner for detecting vulnerabilities in dependencies.+# Called by security-release-gate.yml to scan before releases.## For more examples and options, including how to ignore specific vulnerabilities,# see https://google.github.io/osv-scanner/github-action/@@ -12,20 +12,18 @@name: OSV-Scanneron:- pull_request:- branches: [ "main" ]- merge_group:- branches: [ "main" ]+ workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlpermissions: {} # Minimal top-level for OSSF Scorecard Token-Permissionsjobs:- scan-pr:+ scan:permissions:security-events: writecontents: readactions: read- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@2a387edfbe02a11d856b89172f6e978100177eb4" # v2.3.2+ uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@2a387edfbe02a11d856b89172f6e978100177eb4" # v2.3.2with:scan-args: |--rdiff --git a/.github/workflows/retirejs.yml b/.github/workflows/retirejs.ymlindex 05f1d262b1..a7f538f938 100644--- a/.github/workflows/retirejs.yml+++ b/.github/workflows/retirejs.yml@@ -1,17 +1,6 @@name: Retire.js Security Scanon:- pull_request:- branches: [main, dev, develop]- paths:- - '**.js'- - '**.ts'- - '**.jsx'- - '**.tsx'- - '**.mjs'- - '**.cjs'- - 'package.json'- - 'package-lock.json'push:branches: [main]paths:@@ -24,6 +13,7 @@ on:- 'package.json'- 'package-lock.json'workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlschedule:# Run weekly security scan on Mondays at 4 AM UTC- cron: '0 4 * * 1'diff --git a/.github/workflows/security-release-gate.yml b/.github/workflows/security-release-gate.ymlindex ebb0b07eeb..0252c3fe66 100644--- a/.github/workflows/security-release-gate.yml+++ b/.github/workflows/security-release-gate.yml@@ -14,6 +14,10 @@ name: Security Release Gate## This workflow runs all security scans.# Used by release workflow and also runs daily to catch issues early.+#+# Philosophy:+# - Secrets (gitleaks) run on PRs because secrets in main = permanent exposure+# - Everything else runs at release gate only - can be fixed before releaseon:workflow_call: # Called by release.yml@@ -25,7 +29,9 @@ on:permissions: {} # Minimal top-level for OSSF Scorecardjobs:- # Run all security scans in parallel+ # ============================================+ # Existing security scans+ # ============================================security-tests:uses: ./.github/workflows/security-tests.ymlpermissions:@@ -51,11 +57,114 @@ jobs:contents: readsecurity-events: write+ # ============================================+ # SAST and code analysis+ # ============================================+ codeql-scan:+ uses: ./.github/workflows/codeql.yml+ permissions:+ contents: read+ security-events: write+ packages: read+ actions: read++ devskim-scan:+ uses: ./.github/workflows/devskim.yml+ permissions:+ contents: read+ security-events: write+ actions: read++ # ============================================+ # Dependency vulnerability scanning+ # ============================================+ osv-scanner:+ uses: ./.github/workflows/osv-scanner.yml+ permissions:+ contents: read+ security-events: write+ actions: read++ npm-audit:+ uses: ./.github/workflows/npm-audit.yml+ permissions:+ contents: read++ retirejs-scan:+ uses: ./.github/workflows/retirejs.yml+ permissions:+ contents: read+ security-events: write++ # ============================================+ # Container and IaC security+ # ============================================+ dockle-scan:+ uses: ./.github/workflows/dockle.yml+ permissions:+ contents: read+ security-events: write++ hadolint-scan:+ uses: ./.github/workflows/hadolint.yml+ permissions:+ contents: read+ security-events: write+ pull-requests: write++ checkov-scan:+ uses: ./.github/workflows/checkov.yml+ permissions:+ contents: read+ security-events: write++ # ============================================+ # Workflow security+ # ============================================+ zizmor-scan:+ uses: ./.github/workflows/zizmor-security.yml+ permissions:+ contents: read+ security-events: write+ actions: read++ # ============================================+ # Secret detection (also runs on PRs)+ # ============================================+ gitleaks-scan:+ uses: ./.github/workflows/gitleaks.yml+ permissions:+ contents: read+ security-events: write+ actions: read++ # ============================================# Summary job that reports overall status+ # ============================================security-gate-summary:name: Security Gate Summaryruns-on: ubuntu-latest- needs: [security-tests, semgrep-scan, container-security, owasp-zap-scan]+ needs:+ # Existing scans+ - security-tests+ - semgrep-scan+ - container-security+ - owasp-zap-scan+ # SAST and code analysis+ - codeql-scan+ - devskim-scan+ # Dependency scanning+ - osv-scanner+ - npm-audit+ - retirejs-scan+ # Container and IaC+ - dockle-scan+ - hadolint-scan+ - checkov-scan+ # Workflow security+ - zizmor-scan+ # Secret detection+ - gitleaks-scanif: always()permissions:contents: read@@ -73,7 +182,11 @@ jobs:FAILED=""- # Check each job result+ # ============================================+ # Existing scans+ # ============================================+ echo "### Core Security Scans" >> "$GITHUB_STEP_SUMMARY"+if [ "${{ needs.security-tests.result }}" = "success" ]; thenecho "✅ **Security Tests**: Passed" >> "$GITHUB_STEP_SUMMARY"else@@ -102,11 +215,116 @@ jobs:FAILED="true"fi+ # ============================================+ # SAST and code analysis+ # ============================================+ echo "" >> "$GITHUB_STEP_SUMMARY"+ echo "### SAST & Code Analysis" >> "$GITHUB_STEP_SUMMARY"++ if [ "${{ needs.codeql-scan.result }}" = "success" ]; then+ echo "✅ **CodeQL**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **CodeQL**: ${{ needs.codeql-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.devskim-scan.result }}" = "success" ]; then+ echo "✅ **DevSkim**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **DevSkim**: ${{ needs.devskim-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ # ============================================+ # Dependency scanning+ # ============================================+ echo "" >> "$GITHUB_STEP_SUMMARY"+ echo "### Dependency Vulnerability Scanning" >> "$GITHUB_STEP_SUMMARY"++ if [ "${{ needs.osv-scanner.result }}" = "success" ]; then+ echo "✅ **OSV-Scanner**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **OSV-Scanner**: ${{ needs.osv-scanner.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.npm-audit.result }}" = "success" ]; then+ echo "✅ **npm Audit**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **npm Audit**: ${{ needs.npm-audit.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.retirejs-scan.result }}" = "success" ]; then+ echo "✅ **Retire.js**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Retire.js**: ${{ needs.retirejs-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ # ============================================+ # Container and IaC security+ # ============================================+ echo "" >> "$GITHUB_STEP_SUMMARY"+ echo "### Container & IaC Security" >> "$GITHUB_STEP_SUMMARY"++ if [ "${{ needs.dockle-scan.result }}" = "success" ]; then+ echo "✅ **Dockle**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Dockle**: ${{ needs.dockle-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.hadolint-scan.result }}" = "success" ]; then+ echo "✅ **Hadolint**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Hadolint**: ${{ needs.hadolint-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ if [ "${{ needs.checkov-scan.result }}" = "success" ]; then+ echo "✅ **Checkov**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Checkov**: ${{ needs.checkov-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ # ============================================+ # Workflow security+ # ============================================+ echo "" >> "$GITHUB_STEP_SUMMARY"+ echo "### Workflow Security" >> "$GITHUB_STEP_SUMMARY"++ if [ "${{ needs.zizmor-scan.result }}" = "success" ]; then+ echo "✅ **Zizmor**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Zizmor**: ${{ needs.zizmor-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ # ============================================+ # Secret detection+ # ============================================+ echo "" >> "$GITHUB_STEP_SUMMARY"+ echo "### Secret Detection" >> "$GITHUB_STEP_SUMMARY"++ if [ "${{ needs.gitleaks-scan.result }}" = "success" ]; then+ echo "✅ **Gitleaks**: Passed" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "❌ **Gitleaks**: ${{ needs.gitleaks-scan.result }}" >> "$GITHUB_STEP_SUMMARY"+ FAILED="true"+ fi++ # ============================================+ # Final result+ # ============================================echo "" >> "$GITHUB_STEP_SUMMARY"if [ -n "$FAILED" ]; then+ echo "---" >> "$GITHUB_STEP_SUMMARY"echo "❌ **Security gate failed** - Release blocked until issues are resolved." >> "$GITHUB_STEP_SUMMARY"exit 1else+ echo "---" >> "$GITHUB_STEP_SUMMARY"echo "✅ **All security scans passed** - Release approved from security perspective." >> "$GITHUB_STEP_SUMMARY"fidiff --git a/.github/workflows/zizmor-security.yml b/.github/workflows/zizmor-security.ymlindex 1cdc25eabe..ef496b1a96 100644--- a/.github/workflows/zizmor-security.yml+++ b/.github/workflows/zizmor-security.yml@@ -6,12 +6,8 @@ on:paths:- '.github/workflows/**'- '.github/actions/**'- pull_request:- branches: [ main, dev ]- paths:- - '.github/workflows/**'- - '.github/actions/**'workflow_dispatch:+ workflow_call: # Called by security-release-gate.ymlschedule:# Run security audit weekly on Monday at 9 AM UTC- cron: '0 9 * * 1'