Comments (5)
This has been incorporated into v2.0.0 and will be available soon.
from cyclonedx-node-module.
Yes, a million times yes! I'm not a node programmer, so I just downloaded one of our repositories, ran 'cyclonedx-bom -o bom.xml' on it, and was dumbfounded because the bom.xml file was empty. I tried everything I could think of to get it to work, and eventually Googled my way to salvation by finding this issue (and fix). Up until 3am working on this, feeling a bit loopy right now.
from cyclonedx-node-module.
The lock file doesn't provide enough information so it cannot be used by itself. node_modules needs to be there.
I'm in the process of completely refactoring the node module. I'll add a check that outputs some help in the event a BOM with zero components is produced. Look for these changes in v2.0.0 of the module.
from cyclonedx-node-module.
@stevespringett curious what information you get from node_modules
that you cant see in package-lock.json
?
requiring node_modules
adds extra steps (and time) when doing this on the CI.
from cyclonedx-node-module.
The following data can easily be incorporated into a BOM using node_modules, but not with a package-lock.json:
- Component description
- Component type (framework, library, etc)
- Authors
- License
- License file
- Website URL
- Issue tracker URL
- VCS URL
SPDX license ID and optional license file are obviously valuable for legal and compliance use cases. The URLs are valuable not only for documentation purposes, but for advanced forms of analysis as well (e.g. project health). In addition, future versions of the node plugin will include every file-level component and their corresponding hash values, etc, that provided integrity above and beyond what package-lock.json is capable of achieving.
from cyclonedx-node-module.
Related Issues (20)
- FF in license file throws error HOT 3
- Invalid or unexpected token in 3.4.1 HOT 2
- URL within ExternalReferences array can contain just a period if project is created by create-react-app
- No dependencies(dependency graph) in the generated bom HOT 1
- bump integration tests: use non-vulnerable components HOT 1
- [YARN] support yarn2/yarn3 HOT 1
- use CDX-JS lib for data models, serialization and everythig. HOT 2
- Question: Does it suffice to run npm install instead of ng build in order to generate the BOM for an Angular project? HOT 2
- chore: have check for license-text file-header
- split code in library and application part HOT 2
- [Yarn] First-use experience has some issues HOT 6
- Exception if #purl is not available HOT 5
- Conflicts between cyclonedx-node-module and cyclonedx-python commands HOT 2
- Is the last element in property "dependencies" meaning "direct dependencies"?
- There are no components in the bom HOT 6
- [PSA] ALTERNATIVES :exclamation: :mega: HOT 1
- Missing feature in Version 4 / cyclonedx-npm to inlcuse License text HOT 3
- "cyclonedx-bom: command not found" when installing [email protected] HOT 3
- SBOM can contain invalid URLs in externalReferences HOT 7
- yarn 3.6.1 lockfile issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclonedx-node-module.