NPM Avoid Public Repositories
ID |
avoid_public_repositories_npm |
Severity |
high |
Family |
Avoid public repositories |
Description
Some organizations may have the policy of using private repositories only, with a carefully curated approach to load dependencies into their private repository from the public repositories.
This detector checks if in the configuration there is a public repository configured. Or only has the private repositories configured.
The public repositories configured to check are:
- https://registry.npmjs.org
- https://replicate.npmjs.com
- https://skimdb.npmjs.com
you can change, to add or remove repositories, in the public-repositories
parameter.
You can configure private repositories, in the private-repositories
parameter.