Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change binskim to filter and only run on build legs #8594

Merged
merged 9 commits into from
Jan 7, 2025
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
MiYanni marked this conversation as resolved.
Show resolved Hide resolved
jobs:
- ${{ each config in parameters.buildConfigurations }}:
- job: Windows_NT_${{ config.buildConfig }}
Expand Down