-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: account yarn's applied "compat" patches in SBOM results #192
Comments
By the way, you can also easily inspect the changes using Yarn's So if you would consider the cache content as "patched package", this would remind me to the situation we have with Linux distributions which also carry their own patches. For those, you just refer to "Debian package linux 6.1.112-1" in your BOM, and the consumers know how to resolve the corresponding patches. So perhaps just specifying some special version string and a purl qualifier would also be enough here? |
Thank you for the ticket, @gernot-h . In general, this is not a bug but a lack of feature. Here are some remarks:
The
yes. such modifications are intended to be documented as "pedigree". |
Thanks for the super-fast reply!!
Unfortunately, my JS/TS/Yarn skills are ... very limited, I wouldn't only need to dive into TypeScript, but I also have only a very rough understanding of the involved Yarn (patching) details so I wouldn't feel too comfortable shaping a best practice here.
As it seems that the |
Describe the
bugfeatureYarn's builtin @yarnpkg/plugin-compat will automatically patch specific packages upon install. As far as I can see, this is not reflected in the created SBOM.
To Reproduce
So the only trace of the patch you see in the SBOM is the
bom-ref
which should be opaque to BOM consumers, I guess.Looking at the version and purl, you would assume that an unchanged resolve as available from NPM is in your system while in fact, this patch (readable version) was applied to it.
Expected behavior
To be honest, I'm unsure whether the information should be better provided using
pedigree/patches
, using something like1.22.8&hash=c2c19d
asversion
... or if this would even justify to extend the purl specification...Environment
Tested on:
docker pull node:23-bookworm
The text was updated successfully, but these errors were encountered: