microsoft / sbom-tool

The SBOM tool is a highly scalable and enterprise ready tool to create SPDX 2.2 compatible SBOMs for any variety of artifacts.
MIT License
1.62k stars 130 forks source link

[Microsoft.Sbom.Targets] Rename internal MSBuild properties to minimize risk of conflicts #800

Open KalleOlaviNiemitalo opened 2 hours ago

KalleOlaviNiemitalo commented 2 hours ago

In the Microsoft.Sbom.Targets NuGet package, the MSBuild properties UnzipGuid, ShortUnzipGuidFolder, and NugetPackageUnzip should preferably be renamed to something that includes "Sbom", to minimise the risk of conflicts with properties used for other purposes.

But I wonder how necessary a random number even is here. Perhaps the value of $(NugetPackageUnzip) could be just something like $(IntermediateOutputPath)sbom.tmp with no randomness at all. That change might make the unzipped files less likely to exceed the Windows PATH_MAX limit, too.

Originally posted by @KalleOlaviNiemitalo in https://github.com/microsoft/sbom-tool/issues/693#issuecomment-2341843427

KalleOlaviNiemitalo commented 2 hours ago

Guideline in https://github.com/dotnet/msbuild/issues/2480#issuecomment-1927164481