Skip to content

Commit 9991c7e

Browse files
committed
Apply templating repo version of binskim settings.
1 parent 2556265 commit 9991c7e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.vsts-ci-official.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,16 @@ extends:
6262
enableSourceBuild: true
6363
helixRepo: dotnet/command-line-api
6464
timeoutInMinutes: 180 # increase timeout since BAR publishing might wait a long time
65-
jobs:
66-
- job: Windows
65+
templateContext:
6766
sdl:
6867
binskim:
69-
analyzeTargetGlob: +:f|artifacts\bin\**\*.dll;+:f|artifacts\bin\**\*.exe;
68+
analyzeTargetGlob: +:f|artifacts\bin\**\*.dll;+:f|artifacts\bin\**\*.exe;-:f|artifacts\bin\**\xunit*.dll;-:f|artifacts\bin\**\verify*.dll;
69+
# WORKAROUND: BinSkim requires the folder exist prior to scanning.
70+
preSteps:
71+
- powershell: New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force
72+
displayName: Create artifacts/bin directory
73+
jobs:
74+
- job: Windows
7075
pool:
7176
name: NetCore1ESPool-Internal
7277
demands: ImageOverride -equals windows.vs2022.amd64

0 commit comments

Comments
 (0)