From f3a6f72c9c53133ca13f468a36891bdad376086a 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 0171c79d0d26..8a2e53748ab1 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))