Fix Dependabot security update failure for @babel/core - #1884
Merged
Conversation
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
Signed-off-by: Stephen Griffin <stephenegriffin@users.noreply.github.com>
stephenegriffin
approved these changes
Jul 24, 2026
stephenegriffin
marked this pull request as ready for review
July 24, 2026 17:39
stephenegriffin
enabled auto-merge (squash)
July 24, 2026 17:39
bwittgen
approved these changes
Jul 24, 2026
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 was failing with
security_update_not_possiblebecause it couldn't auto-update the transitive@babel/coredependency from the vulnerable7.28.0to the patched>=7.29.6. The blocker: no@jest/globals@^30release directly pins the fixed babel version, so Dependabot's only resolution path would downgrade@jest/globalsfrom30.4.1→27.5.1.Changes
package.json— adds@babel/coreto the existing npmoverridesblock, forcing^7.29.6(resolves to7.29.7)package-lock.json— regenerated with@babel/core@7.29.7replacing7.28.0This 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.xpeer-requires@babel/core >=7.0.0-beta.0 <8, and@jest/globals@30.xtransitively requires@babel/core@^7.0.0, both satisfied by7.29.7.