Skip to content

Commit

Permalink
check the right variable syntax (#28159)
Browse files Browse the repository at this point in the history
Co-authored-by: sima-zhu <sizhu@microsoft.com>
  • Loading branch information
azure-sdk and sima-zhu committed Apr 11, 2022
1 parent d9f870d commit 15f55a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/common/pipelines/templates/steps/credscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ steps:
displayName: CredScan setup
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
displayName: CredScan running
condition: and(succeededOrFailed(), ne('SKIP_CREDSCAN', true))
condition: and(succeededOrFailed(), ne(variables['SKIP_CREDSCAN'], true))
inputs:
toolVersion: 2.2.7.8
scanFolder: "${{ parameters.SourceDirectory }}/credscan.tsv"
suppressionsFile: ${{ parameters.SuppressionFilePath }}
- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@2
displayName: CredScan result analysis
condition: and(succeededOrFailed(), ne('SKIP_CREDSCAN', true))
condition: and(succeededOrFailed(), ne(variables['SKIP_CREDSCAN'], true))
inputs:
GdnBreakBaselineFiles: ${{ parameters.BaselineFilePath }}
GdnBreakAllTools: false
Expand All @@ -50,4 +50,4 @@ steps:
- pwsh: |
Write-Host "Please check https://aka.ms/azsdk/credscan for more information about the cred scan failure."
displayName: CredScan troubleshooting guide
condition: and(failed(), ne('SKIP_CREDSCAN', true))
condition: and(failed(), ne(variables['SKIP_CREDSCAN'], true))

0 comments on commit 15f55a0

Please sign in to comment.