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
This commit is contained in:
Mitchell Hwang 2022-11-04 19:28:09 +08:00 коммит произвёл GitHub
Родитель b9a574e5aa
Коммит 4abb3b6c98
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 14 добавлений и 0 удалений

10
.config/tsaoptions.json Normal file
Просмотреть файл

@ -0,0 +1,10 @@
{
"instanceUrl": "https://devdiv.visualstudio.com/",
"template": "TFSDEVDIV",
"projectName": "DEVDIV",
"areaPath": "DevDiv\\mono",
"iterationPath": "DevDiv",
"notificationAliases": [ "runtimerepo-infra@microsoft.com" ],
"repositoryName": "mono.posix",
"codebaseName": "mono.posix"
}

Просмотреть файл

@ -25,6 +25,10 @@ variables:
/p:TeamName=$(_TeamName)
/p:DotNetPublishUsingPipelines=true
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
- name: Codeql.Enabled
value: True
- name: Codeql.TSAEnabled
value: True
- name: BuildDirName
value: artifacts