Repository navigation
fix: [SDK-4744] stop preserving stale package-lock.json in downstream sync - #140
Merged
Merged
Conversation
… sync After the bun migration the generated tarballs no longer contain a package-lock.json, but patch-repo.sh excluded it from cleanup, leaving stale lockfiles alive in downstream repos through every sync. This kept react-onesignal pinned to a vulnerable vitest (CVE-2026-47429). Remove the exclusion so syncs delete leftover lockfiles.
fadi-george
approved these changes
Jun 3, 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.
One Line Summary
Stop
patch-repo.shfrom preservingpackage-lock.jsonduring downstream sync so stale lockfiles get cleaned up.Motivation
After migrating the shims to bun, the generated tarballs no longer contain a
package-lock.json. Butscripts/patch-repo.shexplicitly excludedpackage-lock.jsonfrom its cleanup step ("defensive measure"), so a stale lockfile committed in a downstream repo would survive every sync. This keptreact-onesignalpinned to a vulnerablevitest@3.0.9, triggering a critical Dependabot alert (CVE-2026-47429 / GHSA-5xrq-8626-4rwp).Scope
scripts/patch-repo.shonly: removes the! -name "package-lock.json"exclusion from the cleanupfind.CHANGELOG.mdis still preserved (generated by semantic-release, not in the tarball).package-lock.jsonwill have it deleted viagit add -A.Testing
bash -n scripts/patch-repo.shpasses (syntax OK).bun.lock; nothing produces apackage-lock.jsonfor the synced shims.Checklist