dotnet / arcade-services

Arcade Engineering Services
MIT License
60 stars 74 forks source link

Automate BinSkim runs over official builds #2647

Closed tkapin closed 1 year ago

tkapin commented 1 year ago

We are required to run BinSkim over the build artifacts of our official builds. This is one of the requirements to complete compliance (ask @marcpopMSFT for details).

The original instructions are available at AzDO Task 998265 - Run SDL code analysis tools and automatically file bugs for identified security issues.

The instructions in this issue were provided by @mmitche and @garath. Please double-check and comment if some parts are incorrect or not clear. Also /cc @GrabYourPitchforks for awareness.

Current state & known facts

Automating the process

Milestones

Caveats, to be found yet

Due date

Should be automated by RC1

mmitche commented 1 year ago

Added additional info.

mmitche commented 1 year ago

Because the nightly validation pipeline runs off the same logic as the staging pipeline, it can be used for testing and dev iteration.

andriipatsula commented 1 year ago

Repo: https://github.com/dotnet/windowsdesktop Without BinSkim enabled: https://dev.azure.com/dnceng/internal/_build/results?buildId=2212577&view=results With BinSkim enabled: https://dev.azure.com/dnceng/internal/_build/results?buildId=2212587&view=results

andriipatsula commented 1 year ago

Link https://dev.azure.com/dnceng/internal/_git/dotnet-release/pullrequest/32508

The nightly validation pipeline doesn't have any runs for the razor repo because in the repos-to-validate.txt file that is used to schedule validation runs the name is razor-tooling. Changing it to razor which is the correct name of the repo

andriipatsula commented 1 year ago