Replies: 2 comments 1 reply
-
Whatever preceeds the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any chance you can point to this optional cache version in some documentation? Not doubting you, but if we are going to code for it, I need to let the development team know what the spec for these are. Thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apologies upfront, I am not a Yarn expert or user, but work with yarn.lock files to identify packages and dependencies.
Our team generate CDX SBOMs (Software Bill of Materials) that can be imported into Dependency Track (DT) which allows vulnerabilities to be identified.
The SBOMs are created from data found in Metadata files such as yarn.lock, package.json and many others.
A recent SBOM would not import into DT and it gets handed to me to find out why. It eventually came down to 538 invalid SHA512 Checksums that were in yarn.lock files.
An example entry in the SBOM is:
The specific problem is
According to the SBOM specification for hashes it can only contain:
"Must match regular expression: ^([a-fA-F0-9]{32}|[a-fA-F0-9]{40}|[a-fA-F0-9]{64}|[a-fA-F0-9]{96}|[a-fA-F0-9]{128})$"
So no /'s and can only be 128 characters long.
The problem SHA512 checksum is that it 131 characters long and has a / in.
In fact, every problem hash started 10/. I am guessing that whatever is creating these yarn.lock files is adding this "10/" to the front of them.
There is no hash in the package.json for this xtend package
We do not have access to the original software so cannot try to recreate it ourselves. This is what is in the yarn.lock file for the top of the yarn.lock file and for this package:
You can see by looking at this package's package.json file there is no hash in it, so we believe it must be the yarn command that created them.
Taking in the dev entries for the yarn.lock file, there are 1849 invalid hash entries.
Does anyone know if the yarn command creates this or have an idea where else I can look. Thanks in advance for any guidance.
(Cannot see anything in issues against this, but happy to raise one if this is thought to be a bug.)
Beta Was this translation helpful? Give feedback.
All reactions