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.

ci: move security tests to daily-only schedule to reduce CI load

LearningCircuita9602a8068a3
diff --git a/.github/workflows/container-security.yml b/.github/workflows/container-security.yml
index 21c7baa0d4..c23ecfa68d 100644
--- a/.github/workflows/container-security.yml
+++ b/.github/workflows/container-security.yml
@@ -1,10 +1,6 @@
name: Container Security
on:
- push:
- branches: [ main, dev ]
- pull_request:
- branches: [ main, dev ]
workflow_dispatch:
schedule:
# Run container security scan daily at 4 AM UTC
diff --git a/.github/workflows/owasp-zap-scan.yml b/.github/workflows/owasp-zap-scan.yml
index 8cf64a1ea5..ed4f0619f1 100644
--- a/.github/workflows/owasp-zap-scan.yml
+++ b/.github/workflows/owasp-zap-scan.yml
@@ -1,14 +1,13 @@
name: OWASP ZAP Security Scan
-# Baseline and API scans run on push/PR for quick feedback.
-# Full scan is in owasp-zap-full-scan.yml (split to prevent "skipped" noise on PRs).
+# Baseline and API scans run daily (moved from push/PR to reduce CI load).
+# Full scan is in owasp-zap-full-scan.yml.
on:
- push:
- branches: [ main, dev ]
- pull_request:
- branches: [ main, dev ]
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 9098f0cf14..e9baa18501 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,7 +11,15 @@ on:
permissions: {} # Minimal permissions at workflow level for OSSF Scorecard
jobs:
+ # Security gate: verify daily security scans have passed before releasing
+ security-check:
+ uses: ./.github/workflows/security-release-gate.yml
+ permissions:
+ contents: read
+ actions: read
+
build:
+ needs: [security-check]
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..54442b9ad6
--- /dev/null
+++ b/.github/workflows/security-release-gate.yml
@@ -0,0 +1,103 @@
+name: Security Release Gate
+
+# This workflow checks that daily security scans have passed before allowing releases.
+# It verifies the most recent runs of security workflows are successful.
+
+on:
+ workflow_call:
+ outputs:
+ security_status:
+ description: "Overall security check status"
+ value: ${{ jobs.check-security.outputs.status }}
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ actions: read
+
+jobs:
+ check-security:
+ name: Verify Security Scans
+ runs-on: ubuntu-latest
+ outputs:
+ status: ${{ steps.check.outputs.status }}
+
+ 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 workflow statuses
+ id: check
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ set -e
+
+ REPO="${{ github.repository }}"
+ FAILED_WORKFLOWS=""
+
+ echo "Checking security workflow statuses for $REPO..."
+ echo ""
+
+ # List of security workflows to check
+ WORKFLOWS=(
+ "security-tests.yml"
+ "semgrep.yml"
+ "container-security.yml"
+ "owasp-zap-scan.yml"
+ "gitleaks.yml"
+ )
+
+ for workflow in "${WORKFLOWS[@]}"; do
+ echo "Checking $workflow..."
+
+ # Get the most recent completed run for this workflow
+ RESULT=$(gh api \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2022-11-28" \
+ "/repos/$REPO/actions/workflows/$workflow/runs?status=completed&per_page=1" \
+ --jq '.workflow_runs[0] | {conclusion: .conclusion, created_at: .created_at, html_url: .html_url}' \
+ 2>/dev/null || echo '{"conclusion": "not_found"}')
+
+ CONCLUSION=$(echo "$RESULT" | jq -r '.conclusion // "not_found"')
+ CREATED_AT=$(echo "$RESULT" | jq -r '.created_at // "N/A"')
+ URL=$(echo "$RESULT" | jq -r '.html_url // "N/A"')
+
+ if [ "$CONCLUSION" = "success" ]; then
+ echo " ✅ $workflow: PASSED (last run: $CREATED_AT)"
+ elif [ "$CONCLUSION" = "not_found" ]; then
+ echo " ⚠️ $workflow: No completed runs found (may be new workflow)"
+ else
+ echo " ❌ $workflow: FAILED (conclusion: $CONCLUSION)"
+ echo " Last run: $URL"
+ FAILED_WORKFLOWS="$FAILED_WORKFLOWS $workflow"
+ fi
+ echo ""
+ done
+
+ # Determine overall status
+ if [ -n "$FAILED_WORKFLOWS" ]; then
+ echo "::error::Security checks failed for:$FAILED_WORKFLOWS"
+ echo "status=failed" >> "$GITHUB_OUTPUT"
+ exit 1
+ else
+ echo "✅ All security checks passed!"
+ echo "status=passed" >> "$GITHUB_OUTPUT"
+ fi
+
+ - name: Generate summary
+ if: always()
+ run: |
+ {
+ echo "## Security Release Gate Results"
+ echo ""
+ if [ "${{ steps.check.outputs.status }}" = "passed" ]; then
+ echo "✅ **All security scans passed** - Release is approved from a security perspective."
+ else
+ echo "❌ **Security scans failed** - Please fix security issues before releasing."
+ echo ""
+ echo "Review the failed workflows and address any issues before proceeding."
+ fi
+ } >> "$GITHUB_STEP_SUMMARY"
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml
index d6da0ab82a..a549c79711 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -1,10 +1,6 @@
name: Security Tests
on:
- push:
- branches: [ main, dev, develop ]
- pull_request:
- branches: [ main, dev, develop ]
workflow_dispatch:
schedule:
# Run security tests daily at 2 AM UTC
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index 7e64707788..758871397e 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -1,10 +1,6 @@
name: Semgrep Security Scan
on:
- push:
- branches: [ main, dev ]
- pull_request:
- branches: [ main, dev ]
workflow_dispatch:
schedule:
# Run security scan daily at 5 AM UTC