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): use step output instead of hashFiles for SARIF detection (#1918)

LearningCircuit0d0723adc53a
diff --git a/.github/workflows/dockle.yml b/.github/workflows/dockle.yml
index af64617321..af7d15ddde 100644
--- a/.github/workflows/dockle.yml
+++ b/.github/workflows/dockle.yml
@@ -83,6 +83,11 @@ jobs:
if [ "$DOCKLE_FOUND_ISSUES" = "true" ]; then
echo "DOCKLE_FOUND_ISSUES=true" >> "$GITHUB_ENV"
fi
+
+ # Check if SARIF file was created (for use in subsequent steps)
+ if [ -f "dockle-results.sarif" ]; then
+ echo "sarif_exists=true" >> "$GITHUB_OUTPUT"
+ fi
continue-on-error: true
- name: Run Dockle with human-readable output
@@ -103,14 +108,16 @@ jobs:
- name: Upload Dockle results to GitHub Security tab
uses: github/codeql-action/upload-sarif@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
- if: always() && hashFiles('dockle-results.sarif') != ''
+ # Note: hashFiles() is evaluated at workflow parse time, not runtime.
+ # Use step output instead to check if SARIF file was created during the run.
+ if: always() && steps.dockle.outputs.sarif_exists == 'true'
with:
sarif_file: dockle-results.sarif
category: dockle
- name: Upload Dockle results as artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- if: always() && hashFiles('dockle-results.sarif') != ''
+ if: always() && steps.dockle.outputs.sarif_exists == 'true'
with:
name: dockle-results
path: dockle-results.sarif