fix: corrected the audit that had severe vulnerabilities #3
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: | |
| schedule: | |
| # Every Monday at 09:00 UTC | |
| - cron: "0 9 * * 1" | |
| push: | |
| branches: [master] | |
| paths: | |
| - "pnpm-lock.yaml" | |
| - "**/package.json" | |
| workflow_dispatch: | |
| jobs: | |
| audit: | |
| name: Dependency Audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Audit for high and critical vulnerabilities | |
| run: pnpm audit --audit-level=high |