-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
purl of scoped packages #56
Comments
FYI: Dependency Track relies on this format |
It should be producing scoped packages in the following format: |
@stevespringett on my machine it's reproducible, see for example: I also checked the implementation in Dependency Track, it also relies on this faulty behavior for scoped packages, it does not use And just for completeness, OSS Index understands neither version, see OSSIndex/vulns#91 |
Thank you.
Yes please |
This fix will be included in the upcoming 2.0.0 release. |
2.0.0 was pushed to npm. closing. |
I'm trying to get my head around scoped packages in npm.
Maybe I'm wrong and overlooked something, please have a look.
Purl Spec
According to purl-spec for npm packages scoped packages shall use the package's scope as purl namespace. Example from spec
npm
@angular
encoded as%40angular
animation
12.3.1
Problem
However, when I use
cyclonedx-bom -d -o bom.xml
I get in the generated BOM URLs like this:npm
✔️angular
, not encoded because no@
in there@angular
@angular/animation
, encoded as%40angular%2Fanimations
animation
9.1.4
✔️Version
The text was updated successfully, but these errors were encountered: