Skip to content

Commit e5a8d84

Browse files
authored
Merge pull request #2555 from MiYanni/AddBinskim
2 parents a91bcf4 + 4b6ac77 commit e5a8d84

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.config/tsaoptions.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"instanceUrl": "https://devdiv.visualstudio.com/",
3+
"template": "TFSDEVDIV",
4+
"projectName": "DEVDIV",
5+
"areaPath": "DevDiv\\NET Libraries",
6+
"iterationPath": "DevDiv",
7+
"notificationAliases": [ "[email protected]" ],
8+
"repositoryName":"command-line-api",
9+
"codebaseName": "command-line-api",
10+
"serviceTreeId": "7a9b52f6-7805-416c-9390-343168c0cdb3"
11+
}

.vsts-ci-official.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ variables:
55
value: .NETCore
66
- name: Codeql.Enabled
77
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'
813

914
# CI and PR triggers
1015
trigger:
1116
batch: true
1217
branches:
1318
include:
1419
- main
20+
- internal/release/*
21+
- validation/*
1522

1623
pr:
1724
autoCancel: false
@@ -35,6 +42,11 @@ extends:
3542
os: windows
3643
customBuildTags:
3744
- ES365AIMigrationTooling
45+
sdl:
46+
policheck:
47+
enabled: true
48+
tsa:
49+
enabled: true
3850
stages:
3951
- stage: build
4052
displayName: Build and Test
@@ -91,8 +103,10 @@ extends:
91103
${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
92104
_SignType: real
93105
_BuildArgs: $(_OfficialBuildArgs)
94-
95106
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;
96110
outputs:
97111
- output: pipelineArtifact
98112
displayName: Upload package artifacts
@@ -104,7 +118,10 @@ extends:
104118
condition: and(eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
105119
targetPath: '$(Build.SourcesDirectory)\artifacts\SymStore\$(_BuildConfig)'
106120
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
108125
steps:
109126
- checkout: self
110127
clean: true

0 commit comments

Comments
 (0)