cyclonedx-dotnet icon indicating copy to clipboard operation
cyclonedx-dotnet copied to clipboard

Scope property is always being set to required

Open thompson-tomo opened this issue 1 year ago • 8 comments

In my project I have a number of packagereference which has the privateAssets/excludedAssets property set to all yet when I look at the bom which is generated it has the scope property set to required for all components.

thompson-tomo avatar Jan 28 '24 07:01 thompson-tomo

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

github-actions[bot] avatar Apr 28 '24 01:04 github-actions[bot]

@mtsfoni how is this progressing?

thompson-tomo avatar Apr 28 '24 01:04 thompson-tomo

#847 and #848 basically has the solution to the problem that we discussed regarding figuring out what is a dev dependency and what not. Unfortunately, the PR is like 90% done, if is recall correctly.

After that, I planned to introduce an enum CLI-argument, so users can decide how to handle dev dependencies. Options would be so far:

  • Completely excluded from SBOM (this might be the default option for now)
  • Marked with Scope-Excluded
  • Regularly Included

After checking with different people in the CycloneDX core group, I got different answers how to handle dev-dependencies and what e.g. excluded scope is meant for (Somewhere it said for components that must be added to the scope of delivery). Hence, I just want to give the full control about that to the user.

Unfortunately, I'm busy with updating the cdx-dotnet-library to version 1.6 before I can put a lot of time into the tool again. Maybe check out said PR and see what it still needs to be finished? I think it was just minor details there.

mtsfoni avatar Apr 28 '24 09:04 mtsfoni

Ok thanks for the update @mtsfoni I might see if I can determine what is outstanding to help it along.

thompson-tomo avatar Apr 28 '24 10:04 thompson-tomo

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

github-actions[bot] avatar Aug 04 '24 01:08 github-actions[bot]

Still awaiting for solution

thompson-tomo avatar Aug 04 '24 12:08 thompson-tomo