Adding CodeQL in Windows pipeline for product build (#24496)

* Add CodeQL to product build pipeline

* Fix parsing error

* Remove variable

* Remove variables and add to pipeline

* Add CodeQL Finalize step
This commit is contained in:
Sakshi Sharma
2023-09-21 14:51:22 -07:00
committed by GitHub
parent 75deb08a2c
commit 711db9cadc
2 changed files with 18 additions and 7 deletions

View File

@@ -1,16 +1,19 @@
{ {
"codebaseName": "devdiv_vscode-client", "codebaseName": "Azure Data Studio",
"ppe": false, "ppe": false,
"notificationAliases": [ "notificationAliases": [
"sbatten@microsoft.com" "kvhdir@microsoft.com",
"sakshis@microsoft.com"
], ],
"codebaseAdmins": [ "codebaseAdmins": [
"REDMOND\\stbatt", "REDMOND\\karlb",
"REDMOND\\monacotools" "REDMOND\\chgagnon",
"REDMOND\\kisantia",
"REDMOND\\sakshis"
], ],
"instanceUrl": "https://devdiv.visualstudio.com/defaultcollection", "instanceUrl": "https://msdata.visualstudio.com",
"projectName": "DevDiv", "projectName": "Database Systems",
"areaPath": "DevDiv\\VS Code (compliance tracking only)\\Visual Studio Code Client", "areaPath": "Database Systems\\SQL Tools\\Azure Data Studio",
"notifyAlways": true, "notifyAlways": true,
"template": "TFSDEVDIV", "template": "TFSDEVDIV",
"tools": [ "tools": [

View File

@@ -41,6 +41,10 @@ steps:
exec { git config --global https.postBuffer 524288000 } exec { git config --global https.postBuffer 524288000 }
displayName: Prepare tooling displayName: Prepare tooling
- task: CodeQL3000Init@0
displayName: CodeQL Initialize
condition: eq(variables['Codeql.enabled'], 'True')
- powershell: | - powershell: |
git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git" git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git"
git fetch distro git fetch distro
@@ -344,6 +348,10 @@ steps:
continueOnError: true continueOnError: true
condition: and(succeededOrFailed(), eq(variables['RUN_UNSTABLE_TESTS'], 'true')) condition: and(succeededOrFailed(), eq(variables['RUN_UNSTABLE_TESTS'], 'true'))
- task: CodeQL3000Finalize@0
displayName: CodeQL Finalize
condition: eq(variables['Codeql.enabled'], 'True')
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection' displayName: 'Component Detection'
inputs: inputs: