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): suppress Dockle false positives for container security alerts

LearningCircuit6665f85aa806
diff --git a/.github/workflows/dockle.yml b/.github/workflows/dockle.yml
index d4f4c3d0c9..36b0a7eb80 100644
--- a/.github/workflows/dockle.yml
+++ b/.github/workflows/dockle.yml
@@ -48,12 +48,32 @@ jobs:
# Run Dockle with SARIF output for GitHub Security tab
# Mount current directory to /output so SARIF file is written to host filesystem
# Exit code 1 means issues found, but we don't fail the workflow
+ #
+ # Ignored checks (false positives or intentional design):
+ # - CIS-DI-0001: Create a user - image uses gosu entrypoint pattern for privilege drop
+ # (see scripts/ldr_entrypoint.sh which uses gosu to switch to ldruser)
+ # - CIS-DI-0005: Enable Content trust for Docker - runtime env var (DOCKER_CONTENT_TRUST),
+ # not a Dockerfile concern; enforced at deployment time
+ # - CIS-DI-0008: setuid/setgid files - unix_chkpwd is standard Debian base utility
+ # required for PAM authentication, inherited from python:3.13-slim base image
+ # - DKL-DI-0001: Clear apt-get caches - already done in Dockerfile (rm -rf /var/lib/apt/lists/*),
+ # but multi-stage build metadata may confuse Dockle
+ #
+ # Accepted files (false positives):
+ # - unix_chkpwd: PAM utility from Debian base image
+ # - cobyqa/settings.py: Optimization algorithm config from optuna dependency, not credentials
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd):/output" \
goodwithtech/dockle:v0.4.14 \
--format sarif \
--output /output/dockle-results.sarif \
+ --ignore CIS-DI-0001 \
+ --ignore CIS-DI-0005 \
+ --ignore CIS-DI-0008 \
+ --ignore DKL-DI-0001 \
+ --accept-file "usr/sbin/unix_chkpwd" \
+ --accept-file "install/.venv/lib/python3.13/site-packages/cobyqa/settings.py" \
local-deep-research:dockle-scan || {
DOCKLE_FOUND_ISSUES=true
echo "Dockle found security or best practice issues"
@@ -68,9 +88,16 @@ jobs:
if: always()
run: |
echo "=== Dockle Scan Results ==="
+ # Use same ignore flags as SARIF scan for consistent output
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
goodwithtech/dockle:v0.4.14 \
--format list \
+ --ignore CIS-DI-0001 \
+ --ignore CIS-DI-0005 \
+ --ignore CIS-DI-0008 \
+ --ignore DKL-DI-0001 \
+ --accept-file "usr/sbin/unix_chkpwd" \
+ --accept-file "install/.venv/lib/python3.13/site-packages/cobyqa/settings.py" \
local-deep-research:dockle-scan || true
- name: Upload Dockle results to GitHub Security tab
@@ -150,6 +177,13 @@ jobs:
echo "- Don't include secrets or keys in image"
echo "- Keep base images updated"
echo "- Scan images with both Dockle (runtime) and Hadolint (build)"
+ echo ""
+ echo "#### 🔇 Ignored Checks (false positives or intentional design):"
+ echo "- **CIS-DI-0001** (Create a user): Uses gosu entrypoint pattern for privilege drop"
+ echo "- **CIS-DI-0005** (Content trust): Runtime env var, not Dockerfile concern"
+ echo "- **CIS-DI-0008** (setuid/setgid): unix_chkpwd from Debian base, required for PAM"
+ echo "- **DKL-DI-0001** (apt-get cache): Dockerfile clears caches, multi-stage metadata issue"
+ echo "- **cobyqa/settings.py**: Optimization config from optuna dependency, not credentials"
} >> "$GITHUB_STEP_SUMMARY"
- name: Clean up Docker image