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): fix variable scope issue in Dockle workflow (#1919)

LearningCircuitdbdca6ea6add
diff --git a/.github/workflows/dockle.yml b/.github/workflows/dockle.yml
index 5f477f3407..70ee7669d9 100644
--- a/.github/workflows/dockle.yml
+++ b/.github/workflows/dockle.yml
@@ -63,6 +63,8 @@ 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
+ set +e
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd):/output" \
@@ -75,12 +77,12 @@ jobs:
--ignore DKL-DI-0005 \
--accept-file "usr/sbin/unix_chkpwd" \
--accept-file "settings.py" \
- local-deep-research:dockle-scan || {
- DOCKLE_FOUND_ISSUES=true
- echo "Dockle found security or best practice issues"
- }
+ local-deep-research:dockle-scan
+ DOCKLE_EXIT_CODE=$?
+ set -e
- if [ "$DOCKLE_FOUND_ISSUES" = "true" ]; then
+ if [ "$DOCKLE_EXIT_CODE" -ne 0 ]; then
+ echo "Dockle found security or best practice issues"
echo "DOCKLE_FOUND_ISSUES=true" >> "$GITHUB_ENV"
fi