You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Libraries.io:
Good API, we can avoid some GitHub requests and have a fallback for rate limits. Heads up, it also has rate limits https://libraries.io/npm/adviser
Feel free to add more indicators to identify suspicious packages
GitHub without being logged in has a rate limit, be ready to get an invalid response, also you may want to add an option in the config to add a token and use it.
Create documentation for the rule within /docs/rules
Add metadata to the rule
Update the Plugin general README and add the new rule
Just scan dependencies (not devDependencies or dependencies of dependencies, etc)
The text was updated successfully, but these errors were encountered:
Idea
Create a rule that alerts if a package is suspicious based on configurable parameters
Rule Specifications
Name: suspicious-packages
Arguments:
downloads
: Minimum amount of downloads per month in NPMlast-update
: Last package update in months in NPMmaintainers
: Minimum number of maintainers in NPMopen-issues
: Minimum amount of open issues in GitHubstars
: Minimum amount of stars in GitHubwatchers
: Minimum amount of watchers in GitHubforks
: Minimum amount of forks in GitHubarchived
: Archived or notBecause a suspicious package may be the combination of many indicators, like:
I think is better instead to add different setups like:
Implementation
Use the API of NPM, NPM.io, Libraries.io and GitHub
NPM.io:
https://api.npms.io/v2/package/adviser
NPM:
Libraries.io:
Good API, we can avoid some GitHub requests and have a fallback for rate limits. Heads up, it also has rate limits
https://libraries.io/npm/adviser
GitHub:
Notes
The text was updated successfully, but these errors were encountered: