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: add retry logic for pip-audit OSV failures and guard Trivy SARIF uploads (#2518)

LearningCircuit24b1d5921b1e
diff --git a/.github/workflows/container-security.yml b/.github/workflows/container-security.yml
index a64b5e98a5..85163dbae9 100644
--- a/.github/workflows/container-security.yml
+++ b/.github/workflows/container-security.yml
@@ -61,16 +61,27 @@ jobs:
trivyignores: '.trivyignore'
version: 'v0.69.2'
+ - name: Check if SARIF file exists
+ id: check-sarif
+ if: always()
+ run: |
+ if [ -f trivy-results.sarif ]; then
+ echo "exists=true" >> "$GITHUB_OUTPUT"
+ else
+ echo "::error::Trivy did not produce trivy-results.sarif — scan needs to be rerun"
+ exit 1
+ fi
+
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
- if: always()
+ if: always() && steps.check-sarif.outputs.exists == 'true'
with:
sarif_file: 'trivy-results.sarif'
category: container-security
- name: Upload Trivy scan results as artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- if: always()
+ if: always() && steps.check-sarif.outputs.exists == 'true'
with:
name: trivy-scan-results
path: trivy-results.sarif
@@ -119,9 +130,20 @@ jobs:
hide-progress: true
version: 'v0.69.2'
+ - name: Check if config SARIF file exists
+ id: check-config-sarif
+ if: always()
+ run: |
+ if [ -f trivy-config-results.sarif ]; then
+ echo "exists=true" >> "$GITHUB_OUTPUT"
+ else
+ echo "::error::Trivy did not produce trivy-config-results.sarif — scan needs to be rerun"
+ exit 1
+ fi
+
- name: Upload Trivy config scan results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- if: always()
+ if: always() && steps.check-config-sarif.outputs.exists == 'true'
with:
name: trivy-config-results
path: trivy-config-results.sarif