Skip to content

Harden npm dependency graph to clear Dependabot security alerts - #255

Merged
lcollins merged 2 commits into
masterfrom
copilot/fix-dependabot-security-alerts
Aug 10, 2026
Merged

Harden npm dependency graph to clear Dependabot security alerts#255
lcollins merged 2 commits into
masterfrom
copilot/fix-dependabot-security-alerts

Conversation

Copilot AI commented Aug 10, 2026

Copy link
Copy Markdown

Dependabot flagged vulnerable transitive npm packages in the action’s dependency graph (undici, @babel/core, and legacy js-yaml paths). This PR updates dependency resolution so vulnerable ranges are no longer selected while preserving runtime compatibility expectations.

  • Dependency resolution policy

    • Tightened undici override in package.json from an open-ended floor to ^7.29.0, avoiding vulnerable 7.x ranges and preventing an unintended jump to 8.x.
  • Lockfile remediation

    • Refreshed package-lock.json to re-resolve transitive packages onto patched versions.
    • Removes vulnerable selections previously reported by audit/Dependabot in the lock graph.
  • Representative change

    {
      "overrides": {
        "undici": "^7.29.0"
      }
    }

Copilot AI and others added 2 commits August 10, 2026 19:41
Co-authored-by: lcollins <528874+lcollins@users.noreply.github.com>
Co-authored-by: lcollins <528874+lcollins@users.noreply.github.com>
@lcollins
lcollins marked this pull request as ready for review August 10, 2026 19:44
Copilot AI lite review requested due to automatic review settings August 10, 2026 19:44
@lcollins
lcollins merged commit c425a8e into master Aug 10, 2026
5 of 6 checks passed
@lcollins
lcollins deleted the copilot/fix-dependabot-security-alerts branch August 10, 2026 19:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 undici from an open-ended floor (>=6.23.0) to ^7.29.0.
  • Refresh package-lock.json to re-resolve transitive dependencies onto newer patched versions (including @babel/* and legacy js-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 thread package.json
Comment on lines 41 to 43
"overrides": {
"undici": ">=6.23.0"
"undici": "^7.29.0"
},
Comment thread package.json
Comment on lines 41 to 43
"overrides": {
"undici": ">=6.23.0"
"undici": "^7.29.0"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants