-
Notifications
You must be signed in to change notification settings - Fork 584
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
CycloneDX metadata's target component is "." instead of the component name #1238
Comments
Hi @bardenstein -- do you happen to have a specific repo to use to reproduce this issue? |
https://github.com/alexthemark/example-unmet-peer-dep Generates: where I would expect it to name the component example-amplify-app@1.0.0 per the package.json |
Thank you @bardenstein -- we'll add this to the backlog, agree it seems like something to fix 👍 |
Thanks @kzantow. We're all for building SBOMs that are complete and to spec! :) |
@kzantow could a cmd flag to manually overwrite the name be added? if the project is structured so the auto resolver is not correct, it would be nice to manually set it note: name is "." with spdx as well. |
Manual overwrite wouldn't work for some of our solutions, where we have Github Actions that reference/add Syft to specific repos. We'd want something automatic. |
@bardenstein i agree that auto discovery will be best. but i dont see how a |
Unfortunately, I don't think just having a |
We now have the |
I've opened up #2084 to more generically capture what I think the ask is here. |
What happened:
Instead of naming the component and version, the generator puts the local file path (e.g. instead of being my-app, it’s a '.' , or could even be users/myname/code/my-app.
What you expected to happen:
The generator should automatically and accurately fill out the name of the component and version of the code being described, not just by the (relative) path.
How to reproduce it (as minimally and precisely as possible):
Run the Syft generator on a repo to generate a CDX SBOM
Anything else we need to know?:
Here's the CDX spec: https://cyclonedx.org/docs/1.4/json/#metadata_component
Environment:
syft version
:cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: