Skip to content

Commit 95c2f11

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 95c2f11

3 files changed

Lines changed: 124 additions & 153 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"picomatch": "^4.0.4",
1111
"path-to-regexp": "^8.4.0",
1212
"lodash-es": "^4.18.0",
13-
"lodash": "^4.18.0",
14-
"esbuild": "^0.28.1"
13+
"lodash": "^4.18.0"
1514
}
1615
},
1716
"keywords": [
@@ -43,6 +42,7 @@
4342
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
4443
"format:check": "prettier --check \"**/*.{js,jsx,json,md}\"",
4544
"check": "npm run format:check && npm run lint",
45+
"audit:deps": "pnpm audit --audit-level=high",
4646
"example": "node examples/basic-app.js",
4747
"example:sqlite": "node examples/sqlite-app.js",
4848
"example:postgres": "node examples/postgres-app.js",

0 commit comments

Comments
 (0)