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): make security workflows strict - fail on errors

LearningCircuitcb9d75f47410
diff --git a/.github/workflows/checkov.yml b/.github/workflows/checkov.yml
index 393d438357..6e319e48ce 100644
--- a/.github/workflows/checkov.yml
+++ b/.github/workflows/checkov.yml
@@ -49,17 +49,20 @@ jobs:
id: checkov-docker
run: |
echo "=== Scanning Dockerfiles ==="
+ # Strict mode: fail on security issues
+ # Skip CKV_DOCKER_3 (USER instruction) - we use root for package installation
checkov --framework dockerfile \
--file Dockerfile \
--output cli \
--output sarif \
--output-file-path console,checkov-docker.sarif \
- --soft-fail || echo "DOCKER_ISSUES=true" >> "$GITHUB_ENV"
+ --skip-check CKV_DOCKER_3
- name: Run Checkov on docker-compose files
id: checkov-compose
run: |
echo "=== Scanning docker-compose files ==="
+ # Strict mode: fail on security issues
checkov --framework docker_compose \
--file docker-compose.yml \
--file docker-compose.gpu.override.yml \
@@ -67,19 +70,20 @@ jobs:
--file docker-compose.unraid.yml \
--output cli \
--output sarif \
- --output-file-path console,checkov-compose.sarif \
- --soft-fail || echo "COMPOSE_ISSUES=true" >> "$GITHUB_ENV"
+ --output-file-path console,checkov-compose.sarif
- name: Run Checkov on GitHub Actions workflows
id: checkov-workflows
run: |
echo "=== Scanning GitHub Actions workflows ==="
+ # Strict mode: fail on security issues
+ # Skip CKV_GHA_7 (pinned action versions) - handled by separate workflow
checkov --framework github_actions \
--directory .github/workflows \
--output cli \
--output sarif \
--output-file-path console,checkov-workflows.sarif \
- --soft-fail || echo "WORKFLOW_ISSUES=true" >> "$GITHUB_ENV"
+ --skip-check CKV_GHA_7
- name: Upload Dockerfile SARIF results
if: always()
@@ -109,10 +113,5 @@ jobs:
if: always()
run: |
echo "=== Checkov IaC Security Scan Summary ==="
- if [[ "$DOCKER_ISSUES" == "true" || "$COMPOSE_ISSUES" == "true" || "$WORKFLOW_ISSUES" == "true" ]]; then
- echo "⚠️ Security issues found (see details above)"
- echo "📊 SARIF results uploaded to GitHub Security tab"
- echo "Note: Using --soft-fail to not block CI"
- else
- echo "✅ No security issues found"
- fi
+ echo "📊 SARIF results uploaded to GitHub Security tab"
+ echo "✅ Scan completed (strict mode - failures block CI)"
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.yml
index 9f0f881e9d..cce37814b1 100644
--- a/.github/workflows/security-tests.yml
+++ b/.github/workflows/security-tests.yml
@@ -82,10 +82,14 @@ jobs:
fi
- name: Check for known vulnerabilities with Safety
- continue-on-error: true
run: |
- pdm run safety check --json > safety-report.json
- echo "Safety vulnerability scan completed"
+ # Strict mode: fail on known vulnerabilities
+ pdm run safety check --json > safety-report.json || {
+ echo "::error::Known vulnerabilities detected in dependencies"
+ cat safety-report.json
+ exit 1
+ }
+ echo "Safety vulnerability scan completed - no issues found"
- name: Run SQL injection tests
env:
diff --git a/.github/workflows/zizmor-security.yml b/.github/workflows/zizmor-security.yml
index 6fea9c1590..84b0b39f30 100644
--- a/.github/workflows/zizmor-security.yml
+++ b/.github/workflows/zizmor-security.yml
@@ -51,8 +51,14 @@ jobs:
- name: Run zizmor security scan
run: |
+ # Strict mode: fail on security issues
+ # Generate SARIF for GitHub Security tab
zizmor --format sarif .github/workflows/ > zizmor-results.sarif
- continue-on-error: true
+ # Also run for exit code check (zizmor returns non-zero if issues found)
+ zizmor .github/workflows/ || {
+ echo "::error::Zizmor detected security issues in GitHub Actions workflows"
+ exit 1
+ }
- name: Upload zizmor results to GitHub Security tab
uses: github/codeql-action/upload-sarif@32f7c15247fa6542dc765bd40f6a15dc2caeed89 # v4.31.2