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(ci): create centralized security-release-gate.yml

LearningCircuit85ebf6d809ad
diff --git a/.github/workflows/container-security.yml b/.github/workflows/container-security.yml
index cf313840ae..7b268addd6 100644
--- a/.github/workflows/container-security.yml
+++ b/.github/workflows/container-security.yml
@@ -1,11 +1,8 @@
name: Container Security
on:
- workflow_call: # Allow calling from release workflow
+ workflow_call: # Called by security-release-gate.yml
workflow_dispatch:
- schedule:
- # Run container security scan daily at 4 AM UTC
- - cron: '0 4 * * *'
permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions
diff --git a/.github/workflows/owasp-zap-scan.yml b/.github/workflows/owasp-zap-scan.yml
index 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.yml
workflow_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.yml
index 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 Scorecard
jobs:
- # 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.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
-
build:
- needs: [security-tests, semgrep-scan, container-security, owasp-zap-scan]
+ needs: [security-gate]
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
diff --git a/.github/workflows/security-release-gate.yml b/.github/workflows/security-release-gate.yml
new file mode 100644
index 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"
+ fi
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml
index dfc02f126f..28f0de9904 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -1,11 +1,8 @@
name: Security Tests
on:
- workflow_call: # Allow calling from release workflow
+ workflow_call: # Called by security-release-gate.yml
workflow_dispatch:
- schedule:
- # Run security tests daily at 2 AM UTC
- - cron: '0 2 * * *'
permissions:
contents: read
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index fc63d8b3b7..4dd0f941de 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -1,11 +1,8 @@
name: Semgrep Security Scan
on:
- workflow_call: # Allow calling from release workflow
+ workflow_call: # Called by security-release-gate.yml
workflow_dispatch:
- schedule:
- # Run security scan daily at 5 AM UTC
- - cron: '0 5 * * *'
permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions