Fix Checkov MSDO workflow scan

This commit is contained in:
Zohaib Hassnain
2026-06-24 18:54:12 +05:00
parent 795557f08a
commit 6ddcc974f4
+3 -1
View File
@@ -70,9 +70,11 @@ jobs:
- name: Run Checkov
shell: pwsh
env:
PYTHONUTF8: "1"
run: |
New-Item -ItemType Directory -Force reports | Out-Null
checkov --directory . --framework all --soft-fail --output sarif --output-file-path reports/checkov.sarif
checkov --directory . --framework kubernetes helm dockerfile github_actions secrets bicep arm --soft-fail --output sarif --output-file-path reports/checkov.sarif
if (-not (Test-Path reports/checkov.sarif)) {
$sarif = Get-ChildItem -Path reports -Recurse -Filter *.sarif | Select-Object -First 1
if ($null -eq $sarif) { throw "Checkov did not produce a SARIF file" }