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: enable strict mode for Bearer, Grype, and Dockle scanners (#2933)

LearningCircuita08062bc2a6d
diff --git a/.github/workflows/bearer.yml b/.github/workflows/bearer.yml
index a6bd3a376a..1c3d4bb7f0 100644
--- a/.github/workflows/bearer.yml
+++ b/.github/workflows/bearer.yml
@@ -36,7 +36,10 @@ jobs:
config-file: bearer.yml
format: sarif
output: bearer-results.sarif
- exit-code: 0 # Report findings but don't fail the build
+ # DO NOT change to exit-code: 1 — findings are enforced via SARIF alerts
+ # in the release gate (check-code-scanning-alerts job in release-gate.yml).
+ # Failing here would break CI without adding security value.
+ exit-code: 0
- name: Ensure SARIF file exists
if: always()
diff --git a/.github/workflows/dockle.yml b/.github/workflows/dockle.yml
index d42c0f8d3e..154bffea6e 100644
--- a/.github/workflows/dockle.yml
+++ b/.github/workflows/dockle.yml
@@ -63,7 +63,12 @@ jobs:
# Accepted files (false positives):
# - unix_chkpwd: PAM utility from Debian base image
# - settings.py: Any file named settings.py (config files, not credentials)
- # Capture Dockle exit code directly for clarity
+ # Without --exit-code flag, Dockle always exits 0 regardless of findings.
+ # Findings are reported via SARIF and enforced by the release gate
+ # (check-code-scanning-alerts job in release-gate.yml).
+ # Any non-zero exit code here means Docker itself failed (image pull error,
+ # socket unavailable, etc.) — a broken scanner that MUST fail the step,
+ # otherwise no SARIF is produced and the release gate has nothing to check.
set +e
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
@@ -82,15 +87,19 @@ jobs:
set -e
if [ "$DOCKLE_EXIT_CODE" -ne 0 ]; then
- echo "Dockle found security or best practice issues"
- echo "DOCKLE_FOUND_ISSUES=true" >> "$GITHUB_ENV"
+ echo "::error::Dockle/Docker failed with exit code $DOCKLE_EXIT_CODE"
+ exit 1
fi
# Check if SARIF file was created (for use in subsequent steps)
if [ -f "dockle-results.sarif" ]; then
echo "sarif_exists=true" >> "$GITHUB_OUTPUT"
+ # Check if SARIF contains any findings (used by summary step)
+ RESULT_COUNT=$(python3 -c "import json; print(len(json.load(open('dockle-results.sarif')).get('runs',[{}])[0].get('results',[])))" 2>/dev/null || echo "0")
+ if [ "$RESULT_COUNT" -gt 0 ]; then
+ echo "DOCKLE_FOUND_ISSUES=true" >> "$GITHUB_ENV"
+ fi
fi
- continue-on-error: true
- name: Run Dockle with human-readable output
if: always()
diff --git a/.github/workflows/grype.yml b/.github/workflows/grype.yml
index 68058646f7..ae7dbfae33 100644
--- a/.github/workflows/grype.yml
+++ b/.github/workflows/grype.yml
@@ -37,6 +37,9 @@ jobs:
id: grype-fs
with:
path: '.'
+ # DO NOT change to fail-build: true — findings are enforced via SARIF alerts
+ # in the release gate (check-code-scanning-alerts job in release-gate.yml).
+ # Failing here would break CI without adding security value.
fail-build: false
output-format: sarif
severity-cutoff: medium
@@ -119,6 +122,9 @@ jobs:
id: grype-container
with:
image: 'local-deep-research:grype-scan'
+ # DO NOT change to fail-build: true — findings are enforced via SARIF alerts
+ # in the release gate (check-code-scanning-alerts job in release-gate.yml).
+ # Failing here would break CI without adding security value.
fail-build: false
output-format: sarif
severity-cutoff: medium