@@ -78,6 +78,12 @@ extends:
78
78
name : $(DncEngInternalBuildPool)
79
79
image : 1es-windows-2022
80
80
os : windows
81
+ policheck :
82
+ enabled : true
83
+ tsa :
84
+ enabled : true
85
+ binskim :
86
+ enabled : true
81
87
${{ if or(eq(parameters.runTestBuild, true), eq(variables['Build.Reason'], 'PullRequest')) }} :
82
88
componentgovernance :
83
89
# Refdoc: https://docs.opensource.microsoft.com/tools/cg/component-detection/variables/
@@ -101,6 +107,10 @@ extends:
101
107
publishTaskPrefix : 1ES.
102
108
runtimeSourceProperties : /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
103
109
locBranch : release/9.0.2xx
110
+ # WORKAROUND: BinSkim requires the folder exist prior to scanning.
111
+ preSteps :
112
+ - powershell : New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force
113
+ displayName : Create artifacts/bin directory
104
114
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }} :
105
115
timeoutInMinutes : 90
106
116
windowsJobParameterSets :
@@ -331,26 +341,3 @@ extends:
331
341
name : $(DncEngInternalBuildPool)
332
342
image : 1es-windows-2022
333
343
os : windows
334
-
335
- # ############## POST-BUILD STAGE ###############
336
- - template : /eng/common/templates-official/post-build/post-build.yml@self
337
- parameters :
338
- publishingInfraVersion : 3
339
- enableSymbolValidation : false
340
- enableSigningValidation : false
341
- enableNugetValidation : false
342
- enableSourceLinkValidation : false
343
- publishInstallersAndChecksums : true
344
- publishAssetsImmediately : true
345
- SDLValidationParameters :
346
- enable : false
347
- params : ' -SourceToolsList @("policheck","credscan")
348
- -TsaInstanceURL $(_TsaInstanceURL)
349
- -TsaProjectName $(_TsaProjectName)
350
- -TsaNotificationEmail $(_TsaNotificationEmail)
351
- -TsaCodebaseAdmin $(_TsaCodebaseAdmin)
352
- -TsaBugAreaPath $(_TsaBugAreaPath)
353
- -TsaIterationPath $(_TsaIterationPath)
354
- -TsaRepositoryName "dotnet-sdk"
355
- -TsaCodebaseName "dotnet-sdk"
356
- -TsaPublish $True'
0 commit comments