Skip to content

Preserve intermediates when building the VMR with "--clean-while-building" mode (CI) that are inputs to compliance tools #4901

Open
@ViktorHofer

Description

@ViktorHofer

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

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions