File tree Expand file tree Collapse file tree
eng/common/pipelines/templates/steps Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,14 +2,20 @@ parameters:
22 ExclusionDataBaseFileName : ' '
33 TargetDirectory : ' '
44 PublishAnalysisLogs : false
5- PoliCheckBlobSAS : " $(azuresdk-policheck-blob-SAS)"
65 ExclusionFilePath : " $(Build.SourcesDirectory)/eng/guardian-tools/policheck/PolicheckExclusions.xml"
76
87steps :
9- - pwsh : |
10- azcopy copy "https://azuresdkartifacts.blob.core.windows.net/policheck/${{ parameters.ExclusionDataBaseFileName }}.mdb?${{ parameters.PoliCheckBlobSAS }}" `
11- "$(Build.BinariesDirectory)"
12- displayName: 'Download PoliCheck Exclusion Database'
8+ - task : AzurePowerShell@5
9+ displayName : ' Download Policheck Exclusion Database'
10+ inputs :
11+ azureSubscription : ' Azure SDK Artifacts'
12+ ScriptType : ' InlineScript'
13+ azurePowerShellVersion : LatestVersion
14+ pwsh : true
15+ Inline : |
16+ azcopy copy "https://azuresdkartifacts.blob.core.windows.net/policheck/${{ parameters.ExclusionDataBaseFileName }}.mdb" "$(Build.BinariesDirectory)"
17+ env :
18+ AZCOPY_AUTO_LOGIN_TYPE : ' PSCRED'
1319
1420 - task : securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@2
1521 displayName : ' Run PoliCheck'
3339
3440 - ${{ if eq(parameters.PublishAnalysisLogs, 'true') }} :
3541 - task : securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@3
36- displayName : ' Publish Security Analysis Logs'
42+ displayName : ' Publish Security Analysis Logs'
You can’t perform that action at this time.
0 commit comments