diff --git a/.github/workflows/defender-for-devops.yml b/.github/workflows/defender-for-devops.yml index 9fd2c097..d935d523 100644 --- a/.github/workflows/defender-for-devops.yml +++ b/.github/workflows/defender-for-devops.yml @@ -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" }