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

Open
wants to merge 9 commits into
base: release/9.0.1xx
Choose a base branch
from
12 changes: 10 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ variables:
value: true
- name: EnableReleaseOneLocBuild
value: false
- name: GDN_ALLOW_ANALYZE_NO_TARGETS
value: true
marcpopMSFT marked this conversation as resolved.
Show resolved Hide resolved
- template: /eng/common/templates-official/variables/pool-providers.yml

resources:
Expand Down Expand Up @@ -59,8 +61,6 @@ extends:
enabled: true
tsa:
enabled: true
binskim:
analyzeTargetGlob: +:f|**\*.dll;+:f|**\*.exe;
stages:
- stage: build
displayName: Build
Expand Down Expand Up @@ -89,6 +89,14 @@ extends:
enableInternalSources: true
enableTelemetry: true
helixRepo: dotnet/templating
# WORKAROUND: BinSkim requires the folder exist prior to scanning.
marcpopMSFT marked this conversation as resolved.
Show resolved Hide resolved
templateContext:
sdl:
binskim:
analyzeTargetGlob: +:f|artifacts\bin\**\*.dll;+:f|artifacts\bin\**\*.exe;
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
Loading