mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
binskim
This commit is contained in:
parent
cf329fb860
commit
26e86ffb6e
2 changed files with 25 additions and 21 deletions
|
@ -30,6 +30,10 @@ extends:
|
||||||
image: MMSWindows2022-Secure
|
image: MMSWindows2022-Secure
|
||||||
os: windows
|
os: windows
|
||||||
|
|
||||||
|
sdl:
|
||||||
|
binskim:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Calculator
|
- stage: Calculator
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -75,28 +75,28 @@ jobs:
|
||||||
configuration: $(BuildConfiguration)
|
configuration: $(BuildConfiguration)
|
||||||
maximumCpuCount: true
|
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) }}:
|
- ${{ if eq(parameters.isReleaseBuild, 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\*'
|
||||||
|
|
||||||
- task: PublishSymbols@2
|
- task: PublishSymbols@2
|
||||||
displayName: Publish symbols
|
displayName: Publish symbols
|
||||||
inputs:
|
inputs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue