Vulnerability Audit #39
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: Vulnerability Audit | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/audit.yml' | |
- '.github/actions/init-node/action.yml' | |
pull_request: | |
paths: | |
- '.github/workflows/audit.yml' | |
- '.github/actions/init-node/action.yml' | |
schedule: | |
- cron: '00 23 * * *' # Runs at midnight UTC every day | |
jobs: | |
audit: | |
name: Audit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
- name: Initialize Node.js | |
uses: ./.github/actions/init-node | |
with: | |
install: false | |
- name: Check Node.js version for vulnerabilities | |
run: pnpm dlx is-my-node-vulnerable | |
- name: Check dependencies for vulnerabilities | |
run: node --run test:audit |