Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2403c8a

Browse files
committed
Switch to 1ES based compliance tooling
1 parent 91ba9e0 commit 2403c8a

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

.config/tsaoptions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"instanceUrl": "https://devdiv.visualstudio.com/",
3+
"template": "TFSDEVDIV",
4+
"projectName": "DEVDIV",
5+
"areaPath": "DevDiv\\NET Tools\\SDK",
6+
"iterationPath": "DevDiv",
7+
"notificationAliases": [ "[email protected]" ],
8+
"repositoryName":"cli-lab",
9+
"codebaseName": "cli-lab"
10+
}

.vsts-ci.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ resources:
2525
extends:
2626
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
2727
parameters:
28+
sdl:
29+
policheck:
30+
enabled: true
31+
tsa:
32+
enabled: true
33+
configFile: '$(Build.SourcesDirectory)/.config/tsaoptions.json'
2834
pool:
2935
name: $(DncEngInternalBuildPool)
3036
image: 1es-windows-2022
@@ -152,27 +158,3 @@ extends:
152158
publishLocation: 'Container'
153159
parallel: true
154160

155-
- ${{ if eq(variables._RunAsInternal, True) }}:
156-
- template: eng\common\templates-official\post-build\post-build.yml@self
157-
parameters:
158-
publishingInfraVersion: 3
159-
# signing validation will not run, even if the below value is 'true', if the 'PostBuildSign' variable is set to 'true'
160-
enableSigningValidation: false
161-
enableSourceLinkValidation: false
162-
publishDependsOn:
163-
- build
164-
# This is to enable SDL runs part of Post-Build Validation Stage
165-
SDLValidationParameters:
166-
enable: true
167-
continueOnError: false
168-
params: ' -SourceToolsList @("policheck","credscan")
169-
-TsaInstanceURL $(_TsaInstanceURL)
170-
-TsaProjectName $(_TsaProjectName)
171-
-TsaNotificationEmail $(_TsaNotificationEmail)
172-
-TsaCodebaseAdmin $(_TsaCodebaseAdmin)
173-
-TsaBugAreaPath $(_TsaBugAreaPath)
174-
-TsaIterationPath $(_TsaIterationPath)
175-
-TsaRepositoryName "cli-lab"
176-
-TsaCodebaseName "cli-lab"
177-
-TsaPublish $True
178-
-PoliCheckAdditionalRunConfigParams @("UserExclusionPath < $(Build.SourcesDirectory)/eng/PoliCheckExclusions.xml")'

0 commit comments

Comments
 (0)