Skip to content

Commit 5075ee1

Browse files
committed
ci: add pnpm audit to CI workflow
Run pnpm audit --audit-level=high in the lint job to catch severe vulnerabilities before they reach the main branch.
1 parent f2e1b6e commit 5075ee1

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
run: pnpm install --frozen-lockfile
3131
- name: Check code quality
3232
run: pnpm run check
33+
- name: Audit dependencies
34+
run: pnpm run audit:deps
3335

3436
fallow:
3537
name: Fallow

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
4444
"format:check": "prettier --check \"**/*.{js,jsx,json,md}\"",
4545
"check": "npm run format:check && npm run lint",
46+
"audit:deps": "pnpm audit --audit-level=high",
4647
"example": "node examples/basic-app.js",
4748
"example:sqlite": "node examples/sqlite-app.js",
4849
"example:postgres": "node examples/postgres-app.js",

0 commit comments

Comments
 (0)