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: require a fresh OSV scan in the release gate (#6644)

LearningCircuitf76f31bde001
diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml
index e089e07d3a..115d476649 100644
--- a/.github/workflows/osv-scanner.yml
+++ b/.github/workflows/osv-scanner.yml
@@ -6,11 +6,7 @@
# OSV-Scanner for detecting vulnerabilities in dependencies.
# Runs on PRs to catch vulnerable dependencies before merge (shift-left security).
#
-# NOTE: This workflow is NOT included in release-gate.yml because
-# GitHub Actions limits reusable workflow nesting to 2 levels. Since this
-# workflow calls google/osv-scanner-reusable.yml, including it in the gate
-# would create 4 levels of nesting and cause startup_failure:
-# release.yml → release-gate.yml → osv-scanner.yml → google/osv-scanner-reusable.yml
+# Reused by the release gate so each release gets a fresh dependency scan.
#
# For more examples and options, including how to ignore specific vulnerabilities,
# see https://google.github.io/osv-scanner/github-action/
@@ -18,6 +14,7 @@
name: OSV-Scanner
on:
+ workflow_call: # A fresh scan of the caller commit for release-gate.yml
pull_request:
branches: [ "main" ]
merge_group:
@@ -42,6 +39,7 @@ jobs:
actions: read
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@6e4298ebc4db23e847df9b2e2de2939d6f066c67" # v2.5.1
with:
+ ref: ${{ github.sha }}
scan-args: |-
-r
--skip-git
diff --git a/.github/workflows/release-gate.yml b/.github/workflows/release-gate.yml
index b43eaf645d..5cef90e51d 100644
--- a/.github/workflows/release-gate.yml
+++ b/.github/workflows/release-gate.yml
@@ -109,16 +109,12 @@ jobs:
# ============================================
# Dependency vulnerability scanning
# ============================================
- # NOTE: OSV-Scanner is intentionally NOT included in this gate.
- #
- # GitHub Actions limits reusable workflow nesting to 2 levels. Since:
- # release.yml → release-gate.yml → osv-scanner.yml → google/osv-scanner-reusable.yml
- # would create 4 levels, this causes startup_failure.
- #
- # OSV-Scanner runs on PRs instead (see osv-scanner.yml), which is better
- # for shift-left security - catching vulnerable dependencies before merge.
- #
- # See: https://docs.github.com/en/actions/using-workflows/reusing-workflows#nesting-reusable-workflows
+ osv-scan:
+ uses: $/.github/workflows/osv-scanner.yml
+ permissions:
+ contents: read
+ security-events: write
+ actions: read
npm-audit:
uses: $/.github/workflows/npm-audit.yml
@@ -649,6 +645,7 @@ jobs:
needs:
# Wait for all SARIF-uploading scans to complete
- codeql-scan
+ - osv-scan
- semgrep-scan
- devskim-scan
- bearer-scan
@@ -769,7 +766,8 @@ jobs:
- codeql-scan
- devskim-scan
- bearer-scan
- # Dependency scanning (OSV-Scanner runs on PRs, not here - see comment above)
+ # Dependency scanning
+ - osv-scan
- npm-audit
- retirejs-scan
# Dependency/container scanning (overlapping coverage)
@@ -843,6 +841,7 @@ jobs:
check_result "${{ needs.codeql-scan.result }}" || true
check_result "${{ needs.devskim-scan.result }}" || true
check_result "${{ needs.bearer-scan.result }}" || true
+ check_result "${{ needs.osv-scan.result }}" || true
check_result "${{ needs.npm-audit.result }}" || true
check_result "${{ needs.retirejs-scan.result }}" || true
check_result "${{ needs.grype-scan.result }}" || true
@@ -957,6 +956,13 @@ jobs:
echo "### Dependency Vulnerability Scanning"
echo "ℹ️ **OSV-Scanner**: Runs on PRs (excluded from gate due to workflow nesting limits)"
+ if [ "${{ needs.osv-scan.result }}" = "success" ]; then
+ echo "✅ **OSV Dependency Scan**: Passed"
+ else
+ echo "❌ **OSV Dependency Scan**: ${{ needs.osv-scan.result }}"
+ FAILED="true"
+ fi
+
if [ "${{ needs.npm-audit.result }}" = "success" ]; then
echo "✅ **npm Audit**: Passed"
else