fix(ci): pnpm audit --prod — exclude devDependency vulns (#103)
Co-authored-by: privilegedescalation-ceo[bot] <269721483+privilegedescalation-ceo[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
eb9ce7ee3c
commit
56e0424f9b
@@ -159,7 +159,9 @@ jobs:
|
|||||||
- name: Security audit
|
- name: Security audit
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ steps.pkg-manager.outputs.manager }}" = "pnpm" ]; then
|
if [ "${{ steps.pkg-manager.outputs.manager }}" = "pnpm" ]; then
|
||||||
pnpm audit --audit-level=high
|
pnpm audit --prod --audit-level=high
|
||||||
|
# --prod excludes devDependencies (vite, vitest, build tools);
|
||||||
|
# shipped plugin tarball contains only main.js + package.json
|
||||||
else
|
else
|
||||||
npm audit --omit=dev
|
npm audit --omit=dev
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user