Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Plabick/NPM-Vulnerability-Auditor
A tool to find and fix vulnerabilities caused by out of date packages in npm repositories
https://github.com/Plabick/NPM-Vulnerability-Auditor
npm security-audit security-tools
Last synced: 21 days ago
JSON representation
A tool to find and fix vulnerabilities caused by out of date packages in npm repositories
- Host: GitHub
- URL: https://github.com/Plabick/NPM-Vulnerability-Auditor
- Owner: Plabick
- Created: 2021-06-09T01:54:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-23T15:12:32.000Z (over 3 years ago)
- Last Synced: 2024-11-14T05:32:20.218Z (28 days ago)
- Topics: npm, security-audit, security-tools
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
- awesome-hacking-lists - Plabick/NPM-Vulnerability-Auditor - A tool to find and fix vulnerabilities caused by out of date packages in npm repositories (Python)
README
# NPM Vulnerability Auditor
A tool to find and fix vulnerabilities caused by out of date packages in npm repositories Running this tool will clone vulnerable repositories, run `npm audit fix` to update the packages, and suggest a commit or PR message.I made this before I knew about dependabot - this does the same thing...but slower. Please use dependabot
## Usage```
usage: main.py [-h] -p PAT [-t TEAM] [-o ORGANIZATION] [-n]
```| Argument | Description | Mandatory |
|----|----|----|
| -p PAT, --pat PAT | Your GitHub Personal Access Token | Yes |
| -n, --npm | Attempt to run common npm commands (build, lint, pack) after applying fixes | No |
| -t TEAM, --team TEAM | Audit all repos belonging to this team | No |
| -o ORGANIZATION, --organization ORGANIZATION | Audit all repos belonging to this organization | No |
| -h | List commands | No |If no team or organization name is provided, the tool will audit all the user's repos.
GitHub does not allow the creation of PRs outside of organizations via the API, so you will need to raise a PR. The patched project can be found at repos/ after the tool runs. A suggested PR title and body will be outputed to the console for each repo.