Giter VIP home page Giter VIP logo

Comments (3)

sophiewigmore avatar sophiewigmore commented on September 26, 2024

Hi there!

I am also having a problem with hash support that I think is related to this issue.

When I use the cyclonedx-bom CLI tool against a simple Node.js app that contains node modules, the resulting BOM file does not contain any hash content for the node modules if the Node Engine version is v15.X.X or v16.X.X. I'm not sure if the mechanism for surfacing this information has changed in these versions, but collecting the hash metadata definitely does not work for those versions

Edit: It appears that in Node Engine v15, the NPM version inside changed which includes a new package-lock.json format. The package.json files of each node module also appear to not contain the hashes, but the top level package.json does.

from cyclonedx-node-module.

sophiewigmore avatar sophiewigmore commented on September 26, 2024

Additionally, it looks like the hashes included come from the _shasum field inside of each node module's package.json. What is the rationale for using this field rather than the integrity field from the top level package-lock.json?

from cyclonedx-node-module.

jkowalleck avatar jkowalleck commented on September 26, 2024

this feature was implemented in the NPM flavour of this package:
https://github.com/CycloneDX/cyclonedx-node-npm/

from cyclonedx-node-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.