Skip to content

Commit

Permalink
[eng] Set dotnet version before msbuild in security tools pipeline (A…
Browse files Browse the repository at this point in the history
…zure#26775)

* Update security-tools.yml

* Update security-tools.yml

---------

Co-authored-by: Yunchi Wang <[email protected]>
  • Loading branch information
VeryEarly and wyunchi-ms authored Nov 28, 2024
1 parent 1bbb74d commit f933d31
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .azure-pipelines/security-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,28 @@ jobs:
condition: eq(variables.IsGenerateBased, true)
inputs:
versionSpec: 14.17.1

- task: PowerShell@2
displayName: Install autorest
condition: eq(variables.IsGenerateBased, true)
inputs:
targetType: inline
script: npm install autorest@latest;$env:NODE_OPTIONS="--max-old-space-size=65536"
- task: UseDotNet@2
displayName: 'Use .NET Core sdk 6.0.x for build'
inputs:
packageType: sdk
version: 6.0.x
- task: PowerShell@2
displayName: Build
inputs:
targetType: inline
script: dotnet msbuild build.proj /t:"Build;GenerateHelp" /p:"PullRequestNumber=$(System.PullRequest.PullRequestNumber);IsSecurityCheck=true"
- task: UseDotNet@2
displayName: 'Use .NET Core sdk 8.x for CredScan tools'
inputs:
packageType: sdk
version: 8.x
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
displayName: Run CredScan
inputs:
Expand Down

0 comments on commit f933d31

Please sign in to comment.