chore: set bun minimumReleaseAge to 7 days - #78
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughBun installation now requires package versions to be at least seven days old. ChangesBun installation policy
Estimated code review effort: 1 (Trivial) | ~2 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a root Bun configuration (bunfig.toml) to enforce a 7-day minimum age for npm package releases during bun install as a supply-chain mitigation. Sequence diagram for bun install minimumReleaseAge behaviorsequenceDiagram
actor Developer
participant BunCLI as Bun
participant NpmRegistry
Developer->>BunCLI: bun install
BunCLI->>NpmRegistry: resolve package versions
NpmRegistry-->>BunCLI: available_versions
alt [version_age >= minimumReleaseAge]
BunCLI->>BunCLI: select newest_eligible_version
else [no eligible version]
BunCLI->>Developer: fail install (too recent releases)
end
BunCLI-->>Developer: dependencies installed using cooled versions
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Adds a root
bunfig.tomlsetting Bun's install-time minimum release age to 7 days (604800 seconds).With this set,
bun installwill refuse to resolve npm package versions published less than 7 days ago, falling back to the newest version that is old enough. This is a supply-chain mitigation: compromised releases are typically caught and yanked within hours to days of publication, so a cooldown window keeps freshly-published malicious versions out of the dependency graph.No exclusions (
minimumReleaseAgeExcludes) are configured.Verified with
bun install --dry-run(bun 1.3.13) — resolves cleanly, no lockfile changes.Summary by Sourcery
Build:
Summary by CodeRabbit