mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-19 21:03:11 -07:00
fix binskim
This commit is contained in:
parent
a11d5d08de
commit
cf329fb860
2 changed files with 22 additions and 1 deletions
|
@ -31,7 +31,7 @@ extends:
|
|||
os: windows
|
||||
sdl:
|
||||
binskim:
|
||||
analyzeTargetGlob: +:f|$(Build.BinariesDirectory)\**\*.dll;+:f|$(Build.BinariesDirectory)\**\*.exe;-:f|**\GraphingImpl.dll;-:f|**\omsautimmss.dll
|
||||
analyzeTargetGlob: +:f|$(Agent.BuildDirectory)\binskim\**\*.dll;+:f|$(Agent.BuildDirectory)\binskim\**\*.exe
|
||||
|
||||
stages:
|
||||
- stage: Calculator
|
||||
|
|
|
@ -75,6 +75,27 @@ jobs:
|
|||
configuration: $(BuildConfiguration)
|
||||
maximumCpuCount: true
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: Copy Files for BinSkim analysis
|
||||
inputs:
|
||||
SourceFolder: '$(Build.BinariesDirectory)\$(BuildConfiguration)\$(BuildPlatform)\Calculator\'
|
||||
# Setting up a folder to store all the binary files that we need BinSkim to scan.
|
||||
# If we put more things than we produce pdbs for and can index (such as nuget packages that ship without pdbs), binskim will fail.
|
||||
# Below are ignored files
|
||||
# - clrcompression.dll
|
||||
# - WebView2Loader.dll
|
||||
# - Microsoft.Web.WebView2.Core.dll
|
||||
Contents: |
|
||||
**\*
|
||||
!**\clrcompression.dll
|
||||
!**\WebView2Loader.dll
|
||||
!**\Microsoft.Web.WebView2.Core.dll
|
||||
TargetFolder: '$(Agent.BuildDirectory)\binskim'
|
||||
CleanTargetFolder: true
|
||||
OverWrite: true
|
||||
flattenFolders: false
|
||||
analyzeTarget: '$(Agent.BuildDirectory)\binskim\*'
|
||||
|
||||
- ${{ if eq(parameters.isReleaseBuild, true) }}:
|
||||
- task: PublishSymbols@2
|
||||
displayName: Publish symbols
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue