feat(supply-chain): upgrade pnpm to 11, workspace updates, deps and a…#1017
Closed
tylermorrisford wants to merge 1 commit into
Closed
feat(supply-chain): upgrade pnpm to 11, workspace updates, deps and a…#1017tylermorrisford wants to merge 1 commit into
tylermorrisford wants to merge 1 commit into
Conversation
|
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
☢️ The following Vulnerabilities (CVEs) have been detected
| PACKAGE | FILE | CVE ID | INSTALLED VERSION | FIXED VERSION | ||
|---|---|---|---|---|---|---|
| form-data | ./pnpm-lock.yaml | CVE-2025-7783 | 4.0.2 | 2.5.4, 3.0.4, 4.0.4 | View in code | |
| immutable | ./pnpm-lock.yaml | CVE-2026-29063 | 3.7.6 | 4.3.8, 5.1.5, 3.8.3 | View in code | |
| rollup | ./pnpm-lock.yaml | CVE-2026-27606 | 2.79.2 | 2.80.0, 3.30.0, 4.59.0 | View in code | |
| tmp | ./pnpm-lock.yaml | CVE-2026-44705 | 0.0.33 | 0.2.6 | View in code |
Contributor
Author
|
Closing this in favor of working with a clean and up-to-date branch, like a normal human being |
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.18.2topnpm@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 allowlist controlling which packages can run lifecycle scripts (postinstall/install) duringpnpm install. See note below.allowBuildsexceptionsThree packages declared lifecycle scripts and were surfaced by
pnpm approve-buildsafter the initial install. All three 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— since esbuild 0.17+, the platform-specific binary is delivered via optional dependencies (@esbuild/darwin-arm64,@esbuild/linux-x64, etc.), which pnpm already resolves. The postinstall script is only a fallback for package managers that skip optional deps; it is not needed here.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→93cb6efe...pnpm/action-setup→41ff7265...actions/setup-node→49933ea5...tibdex/github-app-token→3beb63f4...changesets/action→a45c4d59...Renovate config
Added
"github>commercetools/renovate-config"as the first entry inrenovate.json'sextendsarray so this repo inherits the shared security presets introduced in FEC-962. Existing local rules are preserved.