Skip to content

Commit

Permalink
Merge pull request #8594 from dotnet/marcpopMSFT-binskimworkaround
Browse files Browse the repository at this point in the history
Change binskim to filter and only run on build legs
  • Loading branch information
marcpopMSFT authored Jan 7, 2025
2 parents 2ab364d + 8c22ce0 commit cdb776d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ extends:
enabled: true
tsa:
enabled: true
binskim:
analyzeTargetGlob: +:f|**\*.dll;+:f|**\*.exe;
stages:
- stage: build
displayName: Build
Expand Down Expand Up @@ -89,6 +87,14 @@ extends:
enableInternalSources: true
enableTelemetry: true
helixRepo: dotnet/templating
templateContext:
sdl:
binskim:
analyzeTargetGlob: +:f|artifacts\bin\**\*.dll;+:f|artifacts\bin\**\*.exe;
# WORKAROUND: BinSkim requires the folder exist prior to scanning.
preSteps:
- powershell: New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force
displayName: Create artifacts/bin directory
jobs:
- ${{ each config in parameters.buildConfigurations }}:
- job: Windows_NT_${{ config.buildConfig }}
Expand Down

0 comments on commit cdb776d

Please sign in to comment.