feat(supply-chain): upgrade pnpm to 11, workspace updates, deps and a…#1018
Merged
Conversation
|
tdeekens
approved these changes
Jul 8, 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.
FEC-963 Supply Chain Hardening
Pilot supply chain hardening for this repo as part of FEC-964. Applies the full set of hardening measures described in the epic.
Changes
pnpm v11 upgrade
Bumped
packageManagerfrompnpm@10.25.0topnpm@11.10.0. pnpm v11 ships with supply chain protections built-in that back the settings below.Supply chain settings in
pnpm-workspace.yamlAdded explicit security configuration at the workspace level:
minimumReleaseAge: 1440— new package versions must be at least 24 hours old before pnpm will install them, guarding against "package planting" attacks on freshly published versions.minimumReleaseAgeExclude— bypasses the age check for all@commercetools/*,@commercetools-frontend/*,@commercetools-backend/*, and@commercetools-uikit/*packages so internal releases aren't gated.blockExoticSubdeps: true— prevents installation of dependencies with unusual or non-standard resolution strategies.allowBuilds— explicit map controlling which packages can run lifecycle scripts (postinstall/install) duringpnpm install. See note below.allowBuildsexceptionsSix packages declared lifecycle scripts and were surfaced by
pnpm approve-buildsafter install. All six were set tofalse(blocked):core-jsandcore-js-pure— their postinstall script only prints a donation/sponsor message; the packages function correctly without running it.esbuild,@swc/core,sharp, andunrs-resolver— all four are native binary packages that distribute platform-specific builds via optional dependencies (@esbuild/darwin-arm64,@swc/core-darwin-arm64,@img/sharp-darwin-arm64,@unrs/resolver-*, etc.). pnpm resolves the correct optional dep during install, making their postinstall scripts redundant fallbacks for package managers that skip optionals.Exact dependency pinning
Removed all
^ranges from direct dependencies and replaced them with the exact versions already present in the lockfile. Affected packages:package.json:@babel/core,@types/jest,babel-plugin-module-resolver,find-up,prettier-jest,tsc-filesstandalone/package.json:@babel/runtime,@babel/runtime-corejs3,@commercetools-frontend/application-config,@commercetools-frontend/constants,@faker-js/faker,@types/lodash,lodash,omit-deepgenerators/package.jsonwas already fully pinned.GitHub Actions pinned to commit SHAs
All action references in all three workflow files (
main.yml,pull-request.yml,release.yml) are now pinned to full-length commit SHAs with trailing version comments, preventing tag-mutation attacks:actions/checkout→df4cb1c0...pnpm/action-setup→41ff7265...actions/setup-node→48b55a01...tibdex/github-app-token→3beb63f4...changesets/action→a45c4d59...Renovate config
No changes required —
renovate.jsononmainalready has the full shared-config structure withgithub>commercetools/renovate-configand the relevant library/platform presets.