Skip to content

Commit

Permalink
Ensure Credscan job works properly even when wonkiness is auto-inject…
Browse files Browse the repository at this point in the history
…ed (#3402)

See [this failure](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1617183&view=logs&j=bc67675d-56bf-581f-e0a2-208848ba68ca&t=27a9db8a-8f0c-5ed5-0322-7c4d0e71b2e0) as an example.

A supply-chain governance task was auto-injected and failed. As a result of incorrect condition settings, we don't run the `setup` of credscan, and as such fail to run it.

This PR will remain on-hold until after release week.
  • Loading branch information
scbedd authored Jun 14, 2022
1 parent b3675ef commit 7c6b60d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eng/common/pipelines/templates/steps/credscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7c6b60d

Please sign in to comment.