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): handle missing SARIF file in Bearer scan workflow (#2363)

LearningCircuit1f80d4fb7903
diff --git a/.github/workflows/bearer.yml b/.github/workflows/bearer.yml
index 356975d5b3..9155672a63 100644
--- a/.github/workflows/bearer.yml
+++ b/.github/workflows/bearer.yml
@@ -37,6 +37,29 @@ jobs:
output: bearer-results.sarif
exit-code: 0 # Report findings but don't fail the build
+ - name: Ensure SARIF file exists
+ if: always()
+ run: |
+ if [ ! -f bearer-results.sarif ]; then
+ echo "::warning::Bearer did not produce a SARIF file - creating empty placeholder"
+ cat > bearer-results.sarif << 'SARIF'
+ {
+ "version": "2.1.0",
+ "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
+ "runs": [{
+ "tool": {
+ "driver": {
+ "name": "Bearer",
+ "informationUri": "https://bearer.com",
+ "rules": []
+ }
+ },
+ "results": []
+ }]
+ }
+ SARIF
+ fi
+
- name: Upload Bearer results to GitHub Security tab
uses: github/codeql-action/upload-sarif@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
if: always()