Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force package lock creation for stubborn projects with .npmrc #1488

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Dec 12, 2024

Projects such as juice-shop prevent lock files from getting created using .npmrc files. With this PR, we force the creation of lock files for such projects by looking for .npmrc files with package-lock=false. This improves the build sbom generated for such projects. In addition, the node_modules fallback is expanded to support querying multiple node_modules directory with the glob pattern **/node_modules/**/package.json

@prabhu
Copy link
Collaborator Author

prabhu commented Dec 12, 2024

For juice-shop master, the new sbom includes 2301 npm packages.

bom.json

@prabhu prabhu merged commit a47c1d8 into master Dec 12, 2024
23 checks passed
@prabhu prabhu deleted the feature/npm-auto-install-v2 branch December 12, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant