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.

security: close publish workflow bypass vulnerability

LearningCircuit32c3f08ee653
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index ace2ca41a6..5c3a636cee 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -1,10 +1,18 @@
name: Publish Docker image
+# SECURITY: Only triggered via repository_dispatch from release.yml (after security gate passes)
+# or manually via workflow_dispatch. We intentionally do NOT trigger on release creation
+# because that would bypass the security-release-gate.yml checks if someone creates
+# a release directly via GitHub UI.
on:
- release:
- types: [created]
repository_dispatch:
types: [publish-docker]
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: 'Release tag to publish (e.g., v1.2.3)'
+ required: true
+ type: string
permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index f976106be3..54232d86ea 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -1,10 +1,18 @@
name: Publish to PyPI
+# SECURITY: Only triggered via repository_dispatch from release.yml (after security gate passes)
+# or manually via workflow_dispatch. We intentionally do NOT trigger on release creation
+# because that would bypass the security-release-gate.yml checks if someone creates
+# a release directly via GitHub UI.
on:
- release:
- types: [created]
repository_dispatch:
types: [publish-pypi]
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: 'Release tag to publish (e.g., v1.2.3)'
+ required: true
+ type: string
permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a502d1c2c3..ad37e1f310 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,7 +11,17 @@ on:
permissions: {} # Minimal permissions at workflow level for OSSF Scorecard
jobs:
- # Security gate: run all security scans on the release code
+ # ============================================================================
+ # SECURITY GATE - All security scans must pass before release proceeds
+ # ============================================================================
+ # This gate runs container-security, owasp-zap, semgrep, and security-tests.
+ # The build job depends on this gate, ensuring no release can be created
+ # without passing all security checks.
+ #
+ # NOTE: Docker/PyPI publishing only happens via repository_dispatch from this
+ # workflow. Creating a release via GitHub UI will NOT trigger publishing
+ # (this is by design to prevent security gate bypass).
+ # ============================================================================
security-gate:
uses: ./.github/workflows/security-release-gate.yml
permissions:
diff --git a/.github/workflows/security-release-gate.yml b/.github/workflows/security-release-gate.yml
index 549d1eb8fb..ebb0b07eeb 100644
--- a/.github/workflows/security-release-gate.yml
+++ b/.github/workflows/security-release-gate.yml
@@ -1,6 +1,18 @@
name: Security Release Gate
-# Single workflow that runs all security scans.
+# IMPORTANT: This workflow is the ONLY path to publishing releases.
+#
+# Security model:
+# - All security scans must pass before any release artifacts are published
+# - Docker and PyPI publish workflows are triggered ONLY via repository_dispatch
+# from release.yml, which depends on this gate passing
+# - Direct release creation via GitHub UI will NOT trigger publishing
+# (this is intentional - it prevents bypassing security checks)
+#
+# If you need to publish manually, use workflow_dispatch on release.yml
+# which will run this security gate first.
+#
+# This workflow runs all security scans.
# Used by release workflow and also runs daily to catch issues early.
on: