fix(deploy): pin transitive deps to pass supply-chain min-release-age - #35
Merged
Conversation
The deploy build's pnpm enforces a 24h minimum-release-age policy. Two transitive deps had <24h-old releases locked in (baseline-browser-mapping@2.11.18, seroval@1.6.3), failing 'pnpm i --frozen-lockfile' in Docker. Pin them via pnpm overrides to the latest aged versions (2.11.17, 1.6.2). Verified: latest pnpm's supply-chain check passes; pnpm build + pnpm test green. Root cause is local pnpm 10.28.1 not enforcing min-release-age when generating the lockfile; a durable follow-up is pinning a policy-aware pnpm via packageManager. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Problem
After the OIDC fix, the prod deploy got past AWS auth but failed at the Docker build:
The deploy's pnpm enforces a 24h supply-chain minimum-release-age policy. These two transitive deps had brand-new releases locked into the lockfile. (Local pnpm 10.28.1 doesn't enforce this policy, so it silently locked the too-new versions.)
Fix
Pin the two packages to their latest versions that pass the 24h policy, via
pnpm.overridesinpnpm-workspace.yaml:baseline-browser-mapping→2.11.17(2026-08-21)seroval→1.6.2(2026-08-04)Both are one patch below the flagged versions. Safe to bump/remove once newer releases age past 24h.
Verification
Lockfile passes supply-chain policiespnpm buildandpnpm testgreenpnpm-workspace.yaml+pnpm-lock.yamlFollow-up (not in this PR)
Root cause is that locally-generated lockfiles can slip in too-new packages because local pnpm doesn't enforce the policy. Durable prevention = pin a policy-aware pnpm via
packageManager(or addminimumReleaseAgeonce contributors are on a pnpm that honors it), so local + CI stay consistent.🤖 Generated with Claude Code