fix: use npm audit for both package managers (retired pnpm endpoint)
This commit is contained in:
@@ -168,8 +168,6 @@ jobs:
|
||||
|
||||
- name: Security audit
|
||||
run: |
|
||||
if [ "${{ steps.pkg-manager.outputs.manager }}" = "pnpm" ]; then
|
||||
pnpm audit --prod
|
||||
else
|
||||
npm audit --omit=dev
|
||||
fi
|
||||
# npm retired the audit endpoint pnpm uses. Use npm's audit for both
|
||||
# package managers to avoid 410 errors.
|
||||
npm audit --omit=dev
|
||||
|
||||
Reference in New Issue
Block a user