chore(deps): bump the patch-and-minor group across 1 directory with 4 updates #18
This file contains hidden or 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: Security Audit | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| # Allow manual trigger | |
| workflow_dispatch: | |
| jobs: | |
| npm-audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| # This step is critical for npm audit to work | |
| run: npm ci | |
| - name: Run npm audit | |
| # The `--audit-level=high` flag only fails the check for HIGH or CRITICAL severity vulnerabilities | |
| # Remove the flag to check all levels, or change it to 'critical' to be less strict. | |
| run: npm audit --audit-level=high |