Description
The VMR deletes the entire "artifacts" inner repo folder when building with --clean-while-building
which is used in CI to reduce disk space. That means that compliance tools like CG don't have access to the intermediates that it looks at.
CG looks at a number of different intermediate files, i.e. nuget.config, projects.assets.json, ...
https://github.com/search?q=repo%3Amicrosoft%2Fcomponent-detection%20%2FIList%3Cstring%3E%20SearchPatterns%2F&type=code
We should define a list of intermediates that we want to preserve in all builds modes (source-only and non-source-only) and update this target: https://github.com/dotnet/sdk/blob/5c5a92beffab32631feb44515188c298b53598d2/src/SourceBuild/content/repo-projects/Directory.Build.targets#L654-L663
Metadata
Metadata
Assignees
Type
Projects
Status