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.

security: fix SARIF upload guards and alert check timing (#2921)

LearningCircuit9451fd9d252e
diff --git a/.github/workflows/checkov.yml b/.github/workflows/checkov.yml
index 4583ae551c..0a742a13f8 100644
--- a/.github/workflows/checkov.yml
+++ b/.github/workflows/checkov.yml
@@ -63,29 +63,34 @@ jobs:
-o cli -o sarif \
--output-file-path console,checkov-workflows.sarif
- - name: Upload Dockerfile SARIF results
+ - name: Check SARIF files exist
+ id: check-sarif
if: always()
+ run: |
+ [ -f checkov-docker.sarif ] && echo "docker=true" >> "$GITHUB_OUTPUT"
+ [ -f checkov-compose.sarif ] && echo "compose=true" >> "$GITHUB_OUTPUT"
+ [ -f checkov-workflows.sarif ] && echo "workflows=true" >> "$GITHUB_OUTPUT"
+
+ - name: Upload Dockerfile SARIF results
+ if: always() && steps.check-sarif.outputs.docker == 'true'
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
with:
sarif_file: checkov-docker.sarif
category: checkov-dockerfile
- continue-on-error: true
- name: Upload docker-compose SARIF results
- if: always()
+ if: always() && steps.check-sarif.outputs.compose == 'true'
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
with:
sarif_file: checkov-compose.sarif
category: checkov-compose
- continue-on-error: true
- name: Upload GitHub Actions SARIF results
- if: always()
+ if: always() && steps.check-sarif.outputs.workflows == 'true'
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
with:
sarif_file: checkov-workflows.sarif
category: checkov-workflows
- continue-on-error: true
- name: Summary
if: always()
diff --git a/.github/workflows/release-gate.yml b/.github/workflows/release-gate.yml
index 7c241633f6..32f5b41ad2 100644
--- a/.github/workflows/release-gate.yml
+++ b/.github/workflows/release-gate.yml
@@ -305,6 +305,11 @@ jobs:
with:
egress-policy: audit
+ - name: Wait for SARIF indexing
+ run: |
+ echo "Waiting 120 seconds for GitHub to index SARIF uploads..."
+ sleep 120
+
- name: Check for open security alerts
env:
GH_TOKEN: ${{ github.token }}
diff --git a/.github/workflows/retirejs.yml b/.github/workflows/retirejs.yml
index 607a81c25c..3bdbe484e7 100644
--- a/.github/workflows/retirejs.yml
+++ b/.github/workflows/retirejs.yml
@@ -58,13 +58,17 @@ jobs:
echo "=== Scan Summary ==="
cat retire-output.txt
+ # Check if SARIF file was created (for use in upload step)
+ if [ -f "retire-results.sarif" ]; then
+ echo "sarif_exists=true" >> "$GITHUB_OUTPUT"
+ fi
+
- name: Upload SARIF results
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
- if: always() && hashFiles('retire-results.sarif') != ''
+ if: always() && steps.retire-scan.outputs.sarif_exists == 'true'
with:
sarif_file: retire-results.sarif
category: retirejs
- continue-on-error: true
- name: Check scan results
run: |