-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to set PackageSupplier
in root of SPDX document generated by CLI
#3098
Comments
Thanks for filing this. I believe you are using a directory scan, correct? What type of project(s) are you scanning? I'm trying to determine if there are some other things Syft could do here. For example: if you are doing a directory scan and the directory contains a But also stepping back a bit further, this request seems to me to be at least a part of a more general ask to "provide package information for the top-level package". I occasionally wonder why we don't seem to have a top-level package in Syft's own data model, while the other main SBOM formats do. When scanning a container, the container as the top-level element makes a lot of sense, and this matches the capabilities in both SPDX and CycloneDX to represent the scan this way. But when scanning a directory or, say, a go binary file, the main module seems to be something that could represent the source. Sorry for the longwinded comment here, but I'm just trying to figure out if there are other things we should potentially do instead of surfacing just a |
Hi @kzantow, thanks for response and your effort!
Yes
We're scanning Java application built on top of Tomcat. The dependencies are We do have a root Right now we're executing |
Sorry for the delay getting back to you. I think adding this feature makes sense, since we're already handling the |
A discussion of how best to accomplish this came up today; I think this will be dependent on or otherwise subsumed by the solution for #3397, which is a more generalized request to explicitly set the root package data. The solution for #3397 will impact the specific syntax, which might result in something different than We will most likely want to add a struct to represent the supplier (naming TBD), perhaps something like:
|
What would you like to be added:
An CLI option to set
PackageSupplier
of root entry in the generated SPDX document.Why is this needed:
We're currently doing it by
sed
executed after generation and that's not ideal for multiple reasons. Primary problem is that it generates a lot of questions to the configuration reader. Secondary is that it creates non-portable and fragile point of failure.Additional context:
PackageName
andPackageVersion
can already be set using--source-name
and--source-version
. Possibly a--source-supplier
option could be created.The text was updated successfully, but these errors were encountered: