Describe the bug
the sha512 detection in the builder is broken.
This causes, that the NPM-provided hash is not taken to the SBOM result.
To Reproduce
...
Expected behavior
the sha256 hash from NPM is added to the SBOM.
Screenshots or output-paste
Environment
- @cyclonedx/cyclonedx-npm version:
v1.4.0
Additional context
example hash in the integrity property of NPM:
sha512-EYuhVinaPQ2QMvF+SXUOxKpwmMp5rZxHQVHhuMfwhdSIjkwX+F8f+R/b0gyvZXc7eGu5qJJgOOmtR2likwgcFg==
Describe the bug
the sha512 detection in the builder is broken.
This causes, that the NPM-provided hash is not taken to the SBOM result.
To Reproduce
...
Expected behavior
the sha256 hash from NPM is added to the SBOM.
Screenshots or output-paste
Environment
v1.4.0Additional context
example hash in the
integrityproperty of NPM:sha512-EYuhVinaPQ2QMvF+SXUOxKpwmMp5rZxHQVHhuMfwhdSIjkwX+F8f+R/b0gyvZXc7eGu5qJJgOOmtR2likwgcFg==