update README #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js Vulnerability Check | |
on: [push, pull_request] | |
jobs: | |
check-vulnerabilities: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '>=18.19.0' # Specify the Node.js version you want to test against | |
check-latest: true | |
- name: Run Vulnerability Scan | |
run: npm audit --json | |
- name: Fix Vulnerabilities | |
run: npm audit fix --force --json |