CycloneDX / cyclonedx-dotnet

Creates CycloneDX Software Bill of Materials (SBOM) from .NET Projects
https://cyclonedx.org/
Apache License 2.0
183 stars 89 forks source link

Set additional properties when generating sbom for nugets #842

Open thompson-tomo opened 9 months ago

thompson-tomo commented 9 months ago

When generating a SBOM the below properties should be set to provide a richer experience & better information.

mtsfoni commented 9 months ago

Group the first segment of the package name

This bases on the assumption that packages are named by a certain convention/best practice that is not enforced. I don't think that this applies to all packages.

publisher is the owner as specified in Nuget, if empty use author

Sounds not unreasonable. Interestingly though, on the NuGet website you usually see an owner e.g. here, but in the .nuspec-file I didn't see a filled owner node yet. I would really love using the one from the .nuspec-file but I am little hesitant having to parse the NuGet website for that information. Which did you mean with "as specified in Nuget"?

thompson-tomo commented 9 months ago

@mtsfoni i have just pushed a draft PR #846 which shows the publisher being set.

In relation to the Group you are correct it is not enforced but recently nuget has started using verified prefixes to help improve security by providing visual indicator that packages are coming from a reputable source and who they claim to be.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 3 months with no activity.