Skip to content

Commit

Permalink
Fixed to use the right variable syntax (#3123)
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored Apr 11, 2022
1 parent df4815d commit 43fed5b
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 43fed5b

Please sign in to comment.