-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
fix: remove purl decoding #590
Conversation
@heubeck, what do you think about this PR? Could you kindly check your workflow? |
@misl-smlz, could you kindly sign your commit by following the below instructions? https://github.com/CycloneDX/cdxgen/pull/590/checks?check_run_id=17208798805 |
this breaks PackageURL.fromString from packageurl-js when the version contains e.g. a + Signed-off-by: Michael Seele <michael.seele@schmalz.de>
one process in our app is feeding the cdxgen-erated sbom into grype which has a lot false-positives for npm packages, which I believe comes from the My automated tests are fine, I'll manually do some testing around that grype issue and come back |
% is the encoded form which is the correct way to represent "@" character in purl. This PR removes double-decoding which is the opposite issue. Still will be an interesting test. |
yeah, first look was too quick ;) |
Please also try depscan btw in case you haven't for the false positives issue. |
Ok, grype behaves the same with sboms generated from cdxgen origin or this change.
I'll do, thx. |
@misl-smlz, if you run the |
@prabhu I'll run the repotests.yml in my own repo to make sure everything works as expected. Once that's done, I'll come back and you can start the pipelines here again. |
Signed-off-by: Michael Seele <michael.seele@schmalz.de>
@prabhu I've finished adding rust repos to the test pipeline. Looks good so far. |
@misl-smlz, I will do more testing and merge it tonight or tomorrow. Thank you so much for your help! |
* fix: remove purl decoding this breaks PackageURL.fromString from packageurl-js when the version contains e.g. a + Signed-off-by: Michael Seele <michael.seele@schmalz.de> * chore: add a few rust repotests Signed-off-by: Michael Seele <michael.seele@schmalz.de> --------- Signed-off-by: Michael Seele <michael.seele@schmalz.de> Signed-off-by: Adam Setch <adam.setch@outlook.com>
It appears there is a scenario with node.js that required this decode workaround. I will try to fix the node bug properly instead of reverting this PR. |
this breaks PackageURL.fromString from packageurl-js when the version contains e.g. a +
fixes #589