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): add SARIF fallback to semgrep workflow to prevent upload failure (#3058)

LearningCircuit94ee97b9bbad
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index 760bcbecff..458d92e299 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -171,6 +171,29 @@ jobs:
print(f'Converted {len(sarif[\"runs\"][0][\"results\"])} findings to SARIF format')
"
+ - name: Ensure SARIF file exists
+ if: always()
+ run: |
+ if [ ! -f semgrep-results.sarif ]; then
+ echo "::warning::Semgrep SARIF conversion did not produce a file - creating empty placeholder"
+ cat > semgrep-results.sarif << 'SARIF'
+ {
+ "version": "2.1.0",
+ "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
+ "runs": [{
+ "tool": {
+ "driver": {
+ "name": "Semgrep",
+ "informationUri": "https://semgrep.dev",
+ "rules": []
+ }
+ },
+ "results": []
+ }]
+ }
+ SARIF
+ fi
+
- name: Upload Semgrep results to GitHub Security tab
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
if: always()