Harden npm dependency graph to clear Dependabot security alerts - #255
Merged
Conversation
Co-authored-by: lcollins <528874+lcollins@users.noreply.github.com>
Co-authored-by: lcollins <528874+lcollins@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
lcollins
August 10, 2026 19:44
View session
lcollins
marked this pull request as ready for review
August 10, 2026 19:44
There was a problem hiding this comment.
Pull request overview
This PR aims to remediate Dependabot-reported vulnerabilities in the action’s npm dependency graph by tightening dependency resolution (notably for undici) and refreshing the lockfile so patched transitive versions are selected.
Changes:
- Update the npm override for
undicifrom an open-ended floor (>=6.23.0) to^7.29.0. - Refresh
package-lock.jsonto re-resolve transitive dependencies onto newer patched versions (including@babel/*and legacyjs-yaml).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Tightens the undici override to constrain which versions can be selected during resolution. |
| package-lock.json | Re-resolves the dependency graph to newer versions and reflects the new override outcome in the lock graph. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
41
to
43
| "overrides": { | ||
| "undici": ">=6.23.0" | ||
| "undici": "^7.29.0" | ||
| }, |
Comment on lines
41
to
43
| "overrides": { | ||
| "undici": ">=6.23.0" | ||
| "undici": "^7.29.0" | ||
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot flagged vulnerable transitive npm packages in the action’s dependency graph (
undici,@babel/core, and legacyjs-yamlpaths). This PR updates dependency resolution so vulnerable ranges are no longer selected while preserving runtime compatibility expectations.Dependency resolution policy
undicioverride inpackage.jsonfrom an open-ended floor to^7.29.0, avoiding vulnerable 7.x ranges and preventing an unintended jump to 8.x.Lockfile remediation
package-lock.jsonto re-resolve transitive packages onto patched versions.Representative change
{ "overrides": { "undici": "^7.29.0" } }