fix: use npm audit for both package managers (retired pnpm endpoint)

This commit is contained in:
Hugh Hackman
2026-04-15 00:20:34 +00:00
parent 2a35b1939e
commit 04acf4a278
+3 -5
View File
@@ -168,8 +168,6 @@ jobs:
- name: Security audit - name: Security audit
run: | run: |
if [ "${{ steps.pkg-manager.outputs.manager }}" = "pnpm" ]; then # npm retired the audit endpoint pnpm uses. Use npm's audit for both
pnpm audit --prod # package managers to avoid 410 errors.
else npm audit --omit=dev
npm audit --omit=dev
fi