From eb026eddf51d2449ec089570d3e568f0ced897b6 Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Thu, 2 Jun 2022 16:07:35 -0700 Subject: [PATCH] ensure conditions all work properly in the case of a previous error --- eng/common/pipelines/templates/steps/credscan.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eng/common/pipelines/templates/steps/credscan.yml b/eng/common/pipelines/templates/steps/credscan.yml index 0171c79d0d..8a2e53748a 100644 --- a/eng/common/pipelines/templates/steps/credscan.yml +++ b/eng/common/pipelines/templates/steps/credscan.yml @@ -28,6 +28,8 @@ steps: Write-Host "##vso[task.setvariable variable=SKIP_CREDSCAN]true" } displayName: CredScan setup + condition: succeededOrFailed() + - task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3 displayName: CredScan running condition: and(succeededOrFailed(), ne(variables['SKIP_CREDSCAN'], true))