Resolve high-severity npm vulnerabilities and enforce audit in CI #131
Reference in New Issue
Block a user
Delete Branch "copilot/resolve-npm-audit-vulnerabilities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
66 vulnerabilities across the dependency tree (29 high-severity) were not blocking CI due to
continue-on-error: trueon audit steps.Changes
Dependency updates
npm audit fix --legacy-peer-depson root and web packagesipfs-http-clientdependency (high-severity parse-duration CVE)CI enforcement
npm audit --audit-level=highto main CI workflow (backend and web jobs)continue-on-error: truefrom secret-security workflow audit stepmoderatetohighin security workflowResults
Example CI step
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Pull request overview
This PR addresses npm security vulnerabilities by updating dependencies and enforcing audit checks in CI. It resolves 29 high-severity vulnerabilities (reducing the total from 66 to 43 with 0 high-severity remaining) by running
npm audit fix --legacy-peer-depsand removing the unusedipfs-http-clientdependency.Changes:
ipfs-http-clientdependency that had a high-severity parse-duration CVEnpm audit --audit-level=highenforcement to CI workflows (backend and web jobs)continue-on-error: trueReviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
package.jsonipfs-http-clientdependencypackage-lock.jsonweb/package-lock.json.github/workflows/ci.yml.github/workflows/secret-security.ymlcontinue-on-errorand changed audit level from moderate to highFiles not reviewed (1)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.