Skip to content

Commit 4abb3b6

Browse files
authored
Enable CodeQL with TSA (#32)
CodeQL is a static analysis tool that is able to scan source code to help detect security vulnerabilities. In mono/mono.posix, there already exists auto-injection of CodeQL's init and finalize tasks within the official default pipeline. We enable CodeQL directly on the main pipeline as there are relatively few jobs, and because commits are relatively infrequent, there is no need for a separate pipeline to specify a cadence (periods between commits and therefore pipeline builds can be over a weeklong, so if there is no change, there is no need for a new codeql scan) This PR does the following: Enables CodeQL Enable TSA with CodeQL
1 parent b9a574e commit 4abb3b6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
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\\mono",
6+
"iterationPath": "DevDiv",
7+
"notificationAliases": [ "runtimerepo-infra@microsoft.com" ],
8+
"repositoryName": "mono.posix",
9+
"codebaseName": "mono.posix"
10+
}

ci/common-variables.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ variables:
2525
/p:TeamName=$(_TeamName)
2626
/p:DotNetPublishUsingPipelines=true
2727
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
28+
- name: Codeql.Enabled
29+
value: True
30+
- name: Codeql.TSAEnabled
31+
value: True
2832

2933
- name: BuildDirName
3034
value: artifacts

0 commit comments

Comments
 (0)