Skip to content

Commit d397c32

Browse files
author
gilpanal
committed
ci: scope dependency audit to production deps only
npm audit --audit-level=high was failing on 3 devDependency-only vulnerabilities (esbuild/vite/vitepress, transitive through vitepress's docs tooling). None of these ship in the published package (files whitelist is dist/, README.md, CHANGELOG.md, LICENSE only), and there is no available fix that doesn't break docs:build (esbuild 0.28.1 breaks vite 5.4.21's destructuring transform for legacy browser targets). Scoping the audit to --omit=dev makes the check reflect actual shipped risk; confirmed it passes clean (0 vulnerabilities).
1 parent d2c8fa6 commit d397c32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: npm ci
2626

2727
- name: Audit dependencies
28-
run: npm audit --audit-level=high
28+
run: npm audit --omit=dev --audit-level=high
2929

3030
- name: Type-check declarations
3131
run: npm run typecheck

0 commit comments

Comments
 (0)