chore(lambdas): upgrade yarn to 4.16.0 and harden install config#5155
Merged
Conversation
- Bump Yarn 4.3.1 -> 4.16.0 (packageManager + .yarn/releases) - Add npmMinimalAgeGate: 10080 (7d) to block freshly published packages - Add enableScripts: false to disable lifecycle scripts by default; verified install, build, lint, format-check and tests all pass without per-package allowlist (no dependenciesMeta needed)
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned Files
|
- Remove duplicate enableScripts entry in .yarnrc.yml that broke YAML parsing on CI - Run yarn dedupe: consolidated 72 transitive duplicates; lint, format-check and tests still pass
npalm
commented
Jun 10, 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.
Summary
Upgrades Yarn in
lambdas/and hardens the install pipeline against two supply-chain risks: freshly published packages and arbitrary lifecycle scripts. Also includes lockfile housekeeping.Changes
packageManager+.yarn/releases/)npmMinimalAgeGate: 10080(7 days) in.yarnrc.yml— blocks installing packages published less than a week ago (requires Yarn ≥ 4.9)enableScripts: falsein.yarnrc.yml— disablespreinstall/install/postinstalllifecycle scripts globallyyarn dedupeconsolidated 72 duplicated transitive versions inyarn.lockVerification
CI
Notes
If a future dependency genuinely needs its postinstall, add it explicitly via:
in
lambdas/package.json.