Make SDL/Guardian scripts and templates flexible #7611
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To double check:
Fixes #7592 (see this issue for list of overall changes)
I kicked off a
dotnet-releasevalidation branch here (per some instructions in a mail thread--just copied the changes over to a dev branch and requeued an existing build): https://dev.azure.com/dnceng/internal/_build/results?buildId=1233186&view=resultsThe way I made it more flexible is to make
execute-all-sdl-tools.ps1take an array ofobject, not juststring. It should be backwards compatible withstrings, but ahashtablecan configure more particulars. For example, I can pass these in the list of tools to get PoliCheck to scan two specific directories:I split
run-sdl.ps1into a more focusedrun-sdl.ps1andconfigure-sdl-tool.ps1for the new "configure everything, then run once" workflow.