Skip to content

Commit

Permalink
Add glob pattern for binskim task (#325)
Browse files Browse the repository at this point in the history
* update yaml files

* revert compliance yaml and add glob pattern
  • Loading branch information
jlee671 authored Dec 20, 2024
1 parent 67ee1f5 commit 1dddd49
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ extends:
binskim:
enabled: true
scanOutputDirectoryOnly: true # BinSkim scans whole source tree but we only need to scan the output dir.
analyzeTargetGlob: +:f|$(Build.ArtifactStagingDirectory)\out\**;-:f|$(Build.ArtifactStagingDirectory)\out\**\*.test.*
tsa:
enabled: true
configFile: $(Build.SourcesDirectory)\.config\tsaoptions.json
Expand Down
1 change: 1 addition & 0 deletions .vsts-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ extends:
binskim:
enabled: true
scanOutputDirectoryOnly: true
analyzeTargetGlob: +:f|$(Build.ArtifactStagingDirectory)\out\**;-:f|$(Build.ArtifactStagingDirectory)\out\**\*.test.*
codeql:
compiled:
enabled: true
Expand Down
6 changes: 0 additions & 6 deletions pipelines/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ parameters:
PublishArtifactTemplate: /pipelines/template/1es-publish-task.yml@self

steps:
- task: UseDotNet@2
displayName: "Install .NET SDK"
inputs:
packageType: sdk
version: 8.x

- powershell: |
dotnet tool install --tool-path "${env:AGENT_TOOLSDIRECTORY}\nbgv" nbgv
$version = & "${env:AGENT_TOOLSDIRECTORY}\nbgv\nbgv.exe" get-version --variable SemVer1
Expand Down

0 comments on commit 1dddd49

Please sign in to comment.