@@ -5,13 +5,20 @@ variables:
5
5
value : .NETCore
6
6
- name : Codeql.Enabled
7
7
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'
8
13
9
14
# CI and PR triggers
10
15
trigger :
11
16
batch : true
12
17
branches :
13
18
include :
14
19
- main
20
+ - internal/release/*
21
+ - validation/*
15
22
16
23
pr :
17
24
autoCancel : false
@@ -35,6 +42,11 @@ extends:
35
42
os : windows
36
43
customBuildTags :
37
44
- ES365AIMigrationTooling
45
+ sdl :
46
+ policheck :
47
+ enabled : true
48
+ tsa :
49
+ enabled : true
38
50
stages :
39
51
- stage : build
40
52
displayName : Build and Test
@@ -91,8 +103,10 @@ extends:
91
103
${{ if notin(variables['Build.Reason'], 'PullRequest') }} :
92
104
_SignType : real
93
105
_BuildArgs : $(_OfficialBuildArgs)
94
-
95
106
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;
96
110
outputs :
97
111
- output : pipelineArtifact
98
112
displayName : Upload package artifacts
@@ -104,7 +118,10 @@ extends:
104
118
condition : and(eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
105
119
targetPath : ' $(Build.SourcesDirectory)\artifacts\SymStore\$(_BuildConfig)'
106
120
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
108
125
steps :
109
126
- checkout : self
110
127
clean : true
0 commit comments