microsoft / microsoft/security-devops-azdevops

Checkov's SoftFail not documented, working, and ignored by MSDO

Offen
#169 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@DimaBir arbeitet bereits daran.

Seit 01.6.2026.

area:task area:tools status:waiting-on-author type:docs type:question
Vorherrschende Sprache
TypeScript
Sterne
86
Forks
22
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I've got "SoftFail": true in the MSDO config/.gdnconfig for my pipeline/repo,

Image

and this does influence the commandline MSDO generates:

/home/vsts/work/_msdo/packages/nuget/Microsoft.Guardian.CheckovRedist_linux_amd64.3.2.497/tools/dist/checkov --directory /home/vsts/work/1/s/vmss --output sarif --quiet --soft-fail --enable-secret-scan-all-files --output-file-path /home/vsts/work/1/s/.gdn/.r/checkov/001/checkov.sarif

Checkov finds some errors, but returns 0 as instructed by soft fail being enabled.

    Tool run time: 11.7852427 seconds
    ------------------------------------------------------------------------------
    Checkov completed with exit code 0
    ------------------------------------------------------------------------------

The problem is that MSDO breaks my build anyway, because it's scanning for errors, and seems be be ignoring exit codes?

##[error]BreakException: Guardian detected one or more breaking results.

##[error]MSDO CLI exited with an error exit code: 8

Could MSDO be so kind as to respect the exit codes that I've carefully configured for this tool?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.