Skip to content

[BUG] fix component's hash detection #302

Description

@jkowalleck

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==

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions