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): revert checkov to CLI approach to fix heredoc bug (#1850)

LearningCircuitca1fc482c5b9
diff --git a/.github/workflows/checkov.yml b/.github/workflows/checkov.yml
index 0357633945..593742edd9 100644
--- a/.github/workflows/checkov.yml
+++ b/.github/workflows/checkov.yml
@@ -21,74 +21,47 @@ jobs:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
-
with:
persist-credentials: false
- # Using official Checkov action with SHA-pinning for OSSF Scorecard compliance
- # This replaces pip install checkov==3.2.346 with a container-based approach
- # that has internal hash verification
- - name: Run Checkov on Dockerfiles
- id: checkov-docker
- uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master
- with:
- file: Dockerfile
- framework: dockerfile
- output_format: cli,sarif
- output_file_path: console,checkov-docker.sarif
- skip_check: CKV_DOCKER_3
- soft_fail: false
-
- - name: Run Checkov on docker-compose.yml
- id: checkov-compose-main
- uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master
+ - name: Set up Python
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
- file: docker-compose.yml
- framework: yaml
- output_format: cli,sarif
- output_file_path: console,checkov-compose-main.sarif
- soft_fail: false
+ python-version: '3.11'
- - name: Run Checkov on docker-compose.gpu.override.yml
- id: checkov-compose-gpu
- uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master
- with:
- file: docker-compose.gpu.override.yml
- framework: yaml
- output_format: cli,sarif
- output_file_path: console,checkov-compose-gpu.sarif
- soft_fail: false
+ - name: Install Checkov
+ run: pip install checkov==3.2.499
- - name: Run Checkov on docker-compose.tts.yml
- id: checkov-compose-tts
- uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master
- with:
- file: docker-compose.tts.yml
- framework: yaml
- output_format: cli,sarif
- output_file_path: console,checkov-compose-tts.sarif
- soft_fail: false
+ # Reverted to CLI approach due to known bug in bridgecrewio/checkov-action
+ # when running multiple consecutive action calls (heredoc delimiter overflow)
+ # See: https://github.com/bridgecrewio/checkov-action/issues/170
+ # See: https://github.com/bridgecrewio/checkov/issues/5866
+ - name: Run Checkov on Dockerfile
+ run: |
+ checkov -f Dockerfile \
+ --framework dockerfile \
+ --skip-check CKV_DOCKER_3 \
+ -o cli -o sarif \
+ --output-file-path console,checkov-docker.sarif
- - name: Run Checkov on docker-compose.unraid.yml
- id: checkov-compose-unraid
- uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master
- with:
- file: docker-compose.unraid.yml
- framework: yaml
- output_format: cli,sarif
- output_file_path: console,checkov-compose-unraid.sarif
- soft_fail: false
+ - name: Run Checkov on docker-compose files
+ run: |
+ checkov \
+ -f docker-compose.yml \
+ -f docker-compose.gpu.override.yml \
+ -f docker-compose.tts.yml \
+ -f docker-compose.unraid.yml \
+ --framework yaml \
+ -o cli -o sarif \
+ --output-file-path console,checkov-compose.sarif
- name: Run Checkov on GitHub Actions workflows
- id: checkov-workflows
- uses: bridgecrewio/checkov-action@5051a5cfc7e4c71d95199f81ffafbb490c7e6213 # master
- with:
- directory: .github/workflows
- framework: github_actions
- output_format: cli,sarif
- output_file_path: console,checkov-workflows.sarif
- skip_check: CKV_GHA_7
- soft_fail: false
+ run: |
+ checkov -d .github/workflows \
+ --framework github_actions \
+ --skip-check CKV_GHA_7 \
+ -o cli -o sarif \
+ --output-file-path console,checkov-workflows.sarif
- name: Upload Dockerfile SARIF results
if: always()
@@ -98,36 +71,12 @@ jobs:
category: checkov-dockerfile
continue-on-error: true
- - name: Upload docker-compose main SARIF results
- if: always()
- uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11
- with:
- sarif_file: checkov-compose-main.sarif
- category: checkov-compose-main
- continue-on-error: true
-
- - name: Upload docker-compose GPU SARIF results
- if: always()
- uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11
- with:
- sarif_file: checkov-compose-gpu.sarif
- category: checkov-compose-gpu
- continue-on-error: true
-
- - name: Upload docker-compose TTS SARIF results
- if: always()
- uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11
- with:
- sarif_file: checkov-compose-tts.sarif
- category: checkov-compose-tts
- continue-on-error: true
-
- - name: Upload docker-compose Unraid SARIF results
+ - name: Upload docker-compose SARIF results
if: always()
uses: github/codeql-action/upload-sarif@19b2f06db2b6f5108140aeb04014ef02b648f789 # v4.31.11
with:
- sarif_file: checkov-compose-unraid.sarif
- category: checkov-compose-unraid
+ sarif_file: checkov-compose.sarif
+ category: checkov-compose
continue-on-error: true
- name: Upload GitHub Actions SARIF results
@@ -142,5 +91,5 @@ jobs:
if: always()
run: |
echo "=== Checkov IaC Security Scan Summary ==="
- echo "📊 SARIF results uploaded to GitHub Security tab"
- echo "✅ Scan completed (strict mode - failures block CI)"
+ echo "SARIF results uploaded to GitHub Security tab"
+ echo "Scan completed (strict mode - failures block CI)"