@@ -5,13 +5,20 @@ variables:
55 value : .NETCore
66 - name : Codeql.Enabled
77 value : true
8+ # CodeQL3000 needs this plumbed along as a variable to enable TSA.
9+ - name : Codeql.TSAEnabled
10+ value : true
11+ - name : Codeql.TSAOptionsPath
12+ value : ' $(Build.SourcesDirectory)/.config/tsaoptions.json'
813
914# CI and PR triggers
1015trigger :
1116 batch : true
1217 branches :
1318 include :
1419 - main
20+ - internal/release/*
21+ - validation/*
1522
1623pr :
1724 autoCancel : false
@@ -35,6 +42,11 @@ extends:
3542 os : windows
3643 customBuildTags :
3744 - ES365AIMigrationTooling
45+ sdl :
46+ policheck :
47+ enabled : true
48+ tsa :
49+ enabled : true
3850 stages :
3951 - stage : build
4052 displayName : Build and Test
@@ -91,8 +103,10 @@ extends:
91103 ${{ if notin(variables['Build.Reason'], 'PullRequest') }} :
92104 _SignType : real
93105 _BuildArgs : $(_OfficialBuildArgs)
94-
95106 templateContext :
107+ sdl :
108+ binskim :
109+ analyzeTargetGlob : +:f|artifacts\bin\**\*.dll;+:f|artifacts\bin\**\*.exe;-:f|artifacts\bin\**\xunit*.dll;-:f|artifacts\bin\**\verify*.dll;
96110 outputs :
97111 - output : pipelineArtifact
98112 displayName : Upload package artifacts
@@ -104,7 +118,10 @@ extends:
104118 condition : and(eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
105119 targetPath : ' $(Build.SourcesDirectory)\artifacts\SymStore\$(_BuildConfig)'
106120 artifactName : ' NativeSymbols'
107-
121+ # WORKAROUND: BinSkim requires the folder exist prior to scanning.
122+ preSteps :
123+ - powershell : New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force
124+ displayName : Create artifacts/bin directory
108125 steps :
109126 - checkout : self
110127 clean : true
0 commit comments