Skip to content

Commit fc4bbd6

Browse files
committed
add codeql stage
1 parent 70da3c2 commit fc4bbd6

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.config/tsaoptions.json

+10
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 Developer Experience\\Productivity",
6+
"iterationPath": "DevDiv",
7+
"notificationAliases": [ "mlinfraswat@microsoft.com" ],
8+
"repositoryName":"roslyn-sdk",
9+
"codebaseName": "roslyn-sdk"
10+
}

.vsts-ci.yml

+35
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,41 @@ stages:
123123
queue:
124124
name: Hosted VS2017
125125

126+
- stage: analysis
127+
displayName: Code analysis
128+
pool:
129+
name: VSEngSS-MicroBuild2022-1ES
130+
demands:
131+
- cmd
132+
jobs:
133+
- job: codeql
134+
displayName: CodeQL
135+
variables:
136+
# CG is handled in the primary CI pipeline
137+
- name: skipComponentGovernanceDetection
138+
value: true
139+
# Force CodeQL enabled so it may be run on any branch
140+
- name: Codeql.Enabled
141+
value: true
142+
# Do not let CodeQL 3000 Extension gate scan frequency
143+
- name: Codeql.Cadence
144+
value: 0
145+
- name: Codeql.TSAEnabled
146+
value: true
147+
steps:
148+
- task: UseDotNet@2
149+
inputs:
150+
useGlobalJson: true
151+
- task: CodeQL3000Init@0
152+
displayName: CodeQL Initialize
153+
- script: eng\common\cibuild.cmd
154+
-configuration Release
155+
-prepareMachine
156+
/p:Test=false
157+
displayName: Windows Build
158+
- task: CodeQL3000Finalize@0
159+
displayName: CodeQL Finalize
160+
126161
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
127162
- template: eng\common\templates\post-build\post-build.yml
128163
parameters:

0 commit comments

Comments
 (0)