feat(ci): add checking packages for vulnerabilities #5
Workflow file for this run
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 checks | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Sources | |
uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --immutable --check-cache --check-resolutions | |
- name: Check project packages for deprecated | |
run: yarn npm audit --all --severity moderate | |
- name: Check all packages for vulnerabilities | |
run: yarn npm audit --all --recursive --severity high |