Skip to content

Fix Dependabot security update failure for @babel/core - #1884

Merged
stephenegriffin merged 3 commits into
mainfrom
copilot/fix-dependency-check-job
Jul 24, 2026
Merged

Fix Dependabot security update failure for @babel/core#1884
stephenegriffin merged 3 commits into
mainfrom
copilot/fix-dependency-check-job

Conversation

Copilot AI commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Dependabot was failing with security_update_not_possible because it couldn't auto-update the transitive @babel/core dependency from the vulnerable 7.28.0 to the patched >=7.29.6. The blocker: no @jest/globals@^30 release directly pins the fixed babel version, so Dependabot's only resolution path would downgrade @jest/globals from 30.4.127.5.1.

Changes

  • package.json — adds @babel/core to the existing npm overrides block, forcing ^7.29.6 (resolves to 7.29.7)
  • package-lock.json — regenerated with @babel/core@7.29.7 replacing 7.28.0
"overrides": {
  "tmp": "^0.2.5",
  "@babel/core": "^7.29.6"
}

This is the fix path Dependabot itself suggested: "Add an override/resolution to pin @babel/core to a non-vulnerable version compatible with your dependencies." The override is compatible with all existing consumers — ts-jest@29.x peer-requires @babel/core >=7.0.0-beta.0 <8, and @jest/globals@30.x transitively requires @babel/core@^7.0.0, both satisfied by 7.29.7.

The Dependabot job was failing because it couldn't auto-update the
transitive @babel/core dependency (vulnerable versions < 7.29.6).
The update couldn't be applied because @jest/globals@30.x doesn't
directly pin @babel/core to the fixed version.

Add an npm overrides entry to force @babel/core to ^7.29.6, which
installs 7.29.7 (the latest non-vulnerable 7.x version). This is the
approach recommended by Dependabot itself.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Dependabot Fix Dependabot security update failure for @babel/core Jul 24, 2026
Copilot AI requested a review from stephenegriffin July 24, 2026 15:11
Signed-off-by: Stephen Griffin <stephenegriffin@users.noreply.github.com>
@stephenegriffin
stephenegriffin marked this pull request as ready for review July 24, 2026 17:39
@stephenegriffin
stephenegriffin enabled auto-merge (squash) July 24, 2026 17:39
@stephenegriffin
stephenegriffin merged commit 8ecde1f into main Jul 24, 2026
7 checks passed
@stephenegriffin
stephenegriffin deleted the copilot/fix-dependency-check-job branch July 24, 2026 17:43
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