Skip to content

chore: Disallow Git dependencies#1486

Merged
FrederikBolding merged 1 commit into
mainfrom
fb/disallow-git-deps
May 13, 2026
Merged

chore: Disallow Git dependencies#1486
FrederikBolding merged 1 commit into
mainfrom
fb/disallow-git-deps

Conversation

@FrederikBolding
Copy link
Copy Markdown
Member

@FrederikBolding FrederikBolding commented May 13, 2026

Bump Yarn to v4 and disallow Git dependencies. Additionally add npmMinimalAgeGate and other properties from the module template.


Note

Medium Risk
Changes package manager and install-time policies (Git dependency allowlist, script execution, and npm age gating), which can affect dependency resolution and CI/build reproducibility.

Overview
Upgrades the repo to Yarn v4 (packageManager: yarn@4.14.1 and new yarnPath release) and tightens install-time security defaults.

Yarn is now configured to disallow all Git-based dependencies (approvedGitRepositories: []), disable package install scripts, and enforce an npm publish-age gate with a small allowlist (npmMinimalAgeGate / npmPreapprovedPackages). A plugin-allow-scripts hook is added to run allow-scripts after installs, with corresponding lavamoat.allowScripts configuration in package.json.

Reviewed by Cursor Bugbot for commit 9c12f2d. Bugbot is set up for automated code reviews on this repo. Configure here.

@FrederikBolding FrederikBolding requested a review from a team as a code owner May 13, 2026 07:31
@FrederikBolding FrederikBolding added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit e31d577 May 13, 2026
23 checks passed
@FrederikBolding FrederikBolding deleted the fb/disallow-git-deps branch May 13, 2026 09:46
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