From 4be080679fd2e4d48325c3a39bd7a688f4254b0d Mon Sep 17 00:00:00 2001 From: Yahya Fakhroji Date: Thu, 26 Nov 2026 10:27:54 +0700 Subject: [PATCH 1/2] build(ui): install the portal plugins with pnpm 12 Both plugins pin pnpm 12.23.0 and now wait a day before installing a new release and refuse versions with weaker provenance. semver 6.3.1 lacks provenance, so an override moves it to 6.3.2, and pnpm denies the agent skills @tanstack/react-table ships. --- ui/consumer/README.md | 2 +- ui/consumer/package.json | 2 +- ui/consumer/pnpm-lock.yaml | 189 +++++++++++++++++++++++++++++++- ui/consumer/pnpm-workspace.yaml | 15 ++- ui/provider/README.md | 2 +- ui/provider/package.json | 2 +- ui/provider/pnpm-lock.yaml | 189 +++++++++++++++++++++++++++++++- ui/provider/pnpm-workspace.yaml | 15 ++- 8 files changed, 398 insertions(+), 18 deletions(-) diff --git a/ui/consumer/README.md b/ui/consumer/README.md index 3ff895e1..7909a546 100644 --- a/ui/consumer/README.md +++ b/ui/consumer/README.md @@ -80,7 +80,7 @@ host-absolute URLs that break behind the portal's `/api/plugins//` proxy. pnpm build:fixtures && pnpm preview # cloud-portal, in another terminal -PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7780' AUTH_DEV_TOKEN_EXCHANGE=1 bun run dev +PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7780' AUTH_DEV_TOKEN_EXCHANGE=1 pnpm dev ``` If cloud-portal's `.env` already sets `PORTAL_PLUGINS_JSON` for other plugins, diff --git a/ui/consumer/package.json b/ui/consumer/package.json index 0aed1acd..3403e79d 100644 --- a/ui/consumer/package.json +++ b/ui/consumer/package.json @@ -45,5 +45,5 @@ "vite": "^7.3.5", "vitest": "^4.1.12" }, - "packageManager": "pnpm@11.28.9" + "packageManager": "pnpm@12.23.0" } diff --git a/ui/consumer/pnpm-lock.yaml b/ui/consumer/pnpm-lock.yaml index c2a88b1a..40ce8750 100644 --- a/ui/consumer/pnpm-lock.yaml +++ b/ui/consumer/pnpm-lock.yaml @@ -1,3 +1,180 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.23.0 + version: 12.23.0 + +packages: + + '@pnpm/exe.android-arm64@12.23.0': + resolution: {integrity: sha512-oqZu9yFInENTRA9BKiOnEqOcpr5dNMDbquxq9zKFKJy0nEC385Vw0e4wlsOAlDh90iX94GND6Fc22FVL2O2SmQ==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.23.0': + resolution: {integrity: sha512-fQRjE4Wno8ye0lxhYGmyqdcc6tv+tDGktEmgFzffZ7flp4BG/84VtdXn3i/O4BazgMbNuPdbM75aj7uDZwL7GQ==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.23.0': + resolution: {integrity: sha512-ny5+L92frsfyV3/B3zadYQuU5kBV8o2TXB5WnhBUoJ/9Mz32FVglMr8g1HmUc01yfKkjopZ4rmF1G7vs68JxIg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.23.0': + resolution: {integrity: sha512-+MNmpJSAzb9yc80d5l4VbZ/3Teh8xtlacATUyTAx6fELUK0xwmgFi05hqzg1sXLdAPij5gcIp82VvrqY5tzPrQ==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.23.0': + resolution: {integrity: sha512-AGfkooje58I9hh4xdSDyZCPLKvjrjuvlkKTK2gsTtj6wfhVTw1jz33wB1XbERt2/0odJdEfgnBPUIdalRnb7Fw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.23.0': + resolution: {integrity: sha512-C09Z3tFnPz7CYiae326dGlJcRUNCBtlJvMc04S9M8YKACebHHyamxCItLAisvGdHVf1BawtU9shV0FngjYxMwA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.23.0': + resolution: {integrity: sha512-RLby8T0CIWAbljrbmjaX6S3PYhMHnLbUp+IDcOmZIY1/+wy8hJoQpjMPZlV4VJIGl8lZKUXtxJcLJ2XZ1z2SVw==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-loong64@12.23.0': + resolution: {integrity: sha512-XytxNoKD9/PcugxRHmBptRNDxUYwBtQZwBauJ3lKXFJ3sqHPZSjjFxIMX4HTWQn7FqCVnQlF+tbewjUnvQz0dQ==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.23.0': + resolution: {integrity: sha512-1h9+mBpdmlFA5LW6fAfd5UnLgHakNkEsS1R67mEXY1J6WLLnZcWFJs7Cbde0BD034CRTUa99MaILAuSs2ERf7Q==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.23.0': + resolution: {integrity: sha512-SlPz2UxUshIxgyBRKT0PHncYr2pIoFOxf6WR68HCkhGmASGljYlYYwRVfefgoIPM603x4Fcge9/B1Z3aIq1bSQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.23.0': + resolution: {integrity: sha512-Hk8jKY0i9sjyKPJFYC71lu7Mq5ahb5sWT2zCqNxzzBCrivvCqv5GVfZurLETC5TsSusE9TRWFpynLgG+iaXmSA==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.23.0': + resolution: {integrity: sha512-7+9bD4LBQ5r+7nLnIhDgMnvMm7a7cfc28NogU3NY1sM0+0Jz7K+IwxZb4BJDY/AN1s3F26TgZ3az/bjeCshmXA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.23.0': + resolution: {integrity: sha512-vu/N1nUJxLA0IIumbxL/rR6leGA+++SQY0XL+5KPJ1O2kyvzJoLQYL1ibLGO7TRqsZ90wclboEdhIIWvr3Qsig==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.netbsd-x64@12.23.0': + resolution: {integrity: sha512-c85UPtAJfPR5+ghXS8UGRQlgxwqvz2PFaPaEzIVwUdBU+5DB4X2iuMAMlMXWS6hJ/OjqhKM6tpwyEc4Kkz40Fg==} + cpu: [x64] + os: [netbsd] + + '@pnpm/exe.win32-arm64@12.23.0': + resolution: {integrity: sha512-lx0B8HPaUEG/ovIC0PmA6HhMhXh6ud0pAWVTDNxZvAfAzuGm0RM78SCT/oBY80lbJnwA9al4sTUroqozZK9hVA==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.23.0': + resolution: {integrity: sha512-OnbBaQWQcw31m5APFNKcM8kdmM6H7k8MoaOnA2m1LsWAHX7AZKB5cdJfNwhHGBfkURcwWk1bnMXBdllujMiCFw==} + cpu: [x64] + os: [win32] + + pnpm@12.23.0: + resolution: {integrity: sha512-AtqU/68TP0YHQyKv5VL5DUC19xriWa77zNrMUIWx1hfpjWXgEx9XSLm2dEWXjuUFXX1ZpHPx7vDVBIVP781ZdQ==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.23.0': + optional: true + + '@pnpm/exe.android-x64@12.23.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.23.0': + optional: true + + '@pnpm/exe.darwin-x64@12.23.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.23.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.23.0': + optional: true + + '@pnpm/exe.linux-arm64@12.23.0': + optional: true + + '@pnpm/exe.linux-loong64@12.23.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.23.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.23.0': + optional: true + + '@pnpm/exe.linux-s390x@12.23.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.23.0': + optional: true + + '@pnpm/exe.linux-x64@12.23.0': + optional: true + + '@pnpm/exe.netbsd-x64@12.23.0': + optional: true + + '@pnpm/exe.win32-arm64@12.23.0': + optional: true + + '@pnpm/exe.win32-x64@12.23.0': + optional: true + + pnpm@12.23.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.23.0 + '@pnpm/exe.android-x64': 12.23.0 + '@pnpm/exe.darwin-arm64': 12.23.0 + '@pnpm/exe.darwin-x64': 12.23.0 + '@pnpm/exe.freebsd-x64': 12.23.0 + '@pnpm/exe.linux-arm64': 12.23.0 + '@pnpm/exe.linux-arm64-musl': 12.23.0 + '@pnpm/exe.linux-loong64': 12.23.0 + '@pnpm/exe.linux-ppc64': 12.23.0 + '@pnpm/exe.linux-riscv64': 12.23.0 + '@pnpm/exe.linux-s390x': 12.23.0 + '@pnpm/exe.linux-x64': 12.23.0 + '@pnpm/exe.linux-x64-musl': 12.23.0 + '@pnpm/exe.netbsd-x64': 12.23.0 + '@pnpm/exe.win32-arm64': 12.23.0 + '@pnpm/exe.win32-x64': 12.23.0 + +--- lockfileVersion: '9.0' settings: @@ -7,7 +184,7 @@ settings: overrides: '@module-federation/dts-plugin>adm-zip': 0.6.1 '@module-federation/dts-plugin>undici': 7.30.1 - vitest>tinypool: ^2.1.2 + semver@6: ^6.3.2 importers: @@ -1968,8 +2145,8 @@ packages: scheduler@0.27.0: resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} - semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + semver@6.3.2: + resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==} hasBin: true siginfo@2.0.0: @@ -2323,7 +2500,7 @@ snapshots: debug: 4.4.3 gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.1 + semver: 6.3.2 transitivePeerDependencies: - supports-color @@ -2341,7 +2518,7 @@ snapshots: '@babel/helper-validator-option': 7.29.7 browserslist: 4.29.5 lru-cache: 5.1.1 - semver: 6.3.1 + semver: 6.3.2 '@babel/helper-globals@7.29.7': {} @@ -3985,7 +4162,7 @@ snapshots: scheduler@0.27.0: {} - semver@6.3.1: {} + semver@6.3.2: {} siginfo@2.0.0: {} diff --git a/ui/consumer/pnpm-workspace.yaml b/ui/consumer/pnpm-workspace.yaml index 01ea5895..f5358816 100644 --- a/ui/consumer/pnpm-workspace.yaml +++ b/ui/consumer/pnpm-workspace.yaml @@ -1,6 +1,11 @@ # pnpm settings for this plugin. It is a single package with its own lockfile, # not a workspace member, so there is no `packages:` list. +# Wait a day after a release before installing it, and refuse a version +# whose provenance or trusted publisher is weaker than an earlier release's. +minimumReleaseAge: 1440 +trustPolicy: no-downgrade + # Our own packages are published and consumed across repos on the same day, so # the one-day release delay must not hold them back. minimumReleaseAgeExclude: @@ -12,8 +17,16 @@ allowBuilds: esbuild: true fsevents: false +# @tanstack/react-table ships agent skills, and pnpm 12 asks before exposing +# them. Deny them: the org decided no package's skills should run. +permissions: + '@tanstack/react-table': + skills: false + # Carried over from package.json's npm overrides. overrides: '@module-federation/dts-plugin>adm-zip': 0.6.1 '@module-federation/dts-plugin>undici': 7.30.1 - 'vitest>tinypool': ^2.1.2 + # 6.3.1, which @babel/core pulls in, was published without provenance after + # earlier semver releases had it, so trustPolicy rejects it. 6.3.2 has it. + semver@6: ^6.3.2 diff --git a/ui/provider/README.md b/ui/provider/README.md index c547e0b3..c9d4fa7b 100644 --- a/ui/provider/README.md +++ b/ui/provider/README.md @@ -65,7 +65,7 @@ flag is baked into the build. pnpm build:fixtures && pnpm preview # staff-portal, in another terminal (you must be in the staff-users group) -PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7781' npm run dev +PORTAL_PLUGINS='metal-datumapis-com=http://localhost:7781' pnpm dev ``` If staff-portal's `.env` already sets `PORTAL_PLUGINS_JSON`, add diff --git a/ui/provider/package.json b/ui/provider/package.json index eed856c4..02c4d880 100644 --- a/ui/provider/package.json +++ b/ui/provider/package.json @@ -45,5 +45,5 @@ "vite": "^7.3.5", "vitest": "^4.1.12" }, - "packageManager": "pnpm@11.28.9" + "packageManager": "pnpm@12.23.0" } diff --git a/ui/provider/pnpm-lock.yaml b/ui/provider/pnpm-lock.yaml index a0e268a0..0bdb5935 100644 --- a/ui/provider/pnpm-lock.yaml +++ b/ui/provider/pnpm-lock.yaml @@ -1,3 +1,180 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.23.0 + version: 12.23.0 + +packages: + + '@pnpm/exe.android-arm64@12.23.0': + resolution: {integrity: sha512-oqZu9yFInENTRA9BKiOnEqOcpr5dNMDbquxq9zKFKJy0nEC385Vw0e4wlsOAlDh90iX94GND6Fc22FVL2O2SmQ==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.23.0': + resolution: {integrity: sha512-fQRjE4Wno8ye0lxhYGmyqdcc6tv+tDGktEmgFzffZ7flp4BG/84VtdXn3i/O4BazgMbNuPdbM75aj7uDZwL7GQ==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.23.0': + resolution: {integrity: sha512-ny5+L92frsfyV3/B3zadYQuU5kBV8o2TXB5WnhBUoJ/9Mz32FVglMr8g1HmUc01yfKkjopZ4rmF1G7vs68JxIg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.23.0': + resolution: {integrity: sha512-+MNmpJSAzb9yc80d5l4VbZ/3Teh8xtlacATUyTAx6fELUK0xwmgFi05hqzg1sXLdAPij5gcIp82VvrqY5tzPrQ==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.23.0': + resolution: {integrity: sha512-AGfkooje58I9hh4xdSDyZCPLKvjrjuvlkKTK2gsTtj6wfhVTw1jz33wB1XbERt2/0odJdEfgnBPUIdalRnb7Fw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.23.0': + resolution: {integrity: sha512-C09Z3tFnPz7CYiae326dGlJcRUNCBtlJvMc04S9M8YKACebHHyamxCItLAisvGdHVf1BawtU9shV0FngjYxMwA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.23.0': + resolution: {integrity: sha512-RLby8T0CIWAbljrbmjaX6S3PYhMHnLbUp+IDcOmZIY1/+wy8hJoQpjMPZlV4VJIGl8lZKUXtxJcLJ2XZ1z2SVw==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-loong64@12.23.0': + resolution: {integrity: sha512-XytxNoKD9/PcugxRHmBptRNDxUYwBtQZwBauJ3lKXFJ3sqHPZSjjFxIMX4HTWQn7FqCVnQlF+tbewjUnvQz0dQ==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.23.0': + resolution: {integrity: sha512-1h9+mBpdmlFA5LW6fAfd5UnLgHakNkEsS1R67mEXY1J6WLLnZcWFJs7Cbde0BD034CRTUa99MaILAuSs2ERf7Q==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.23.0': + resolution: {integrity: sha512-SlPz2UxUshIxgyBRKT0PHncYr2pIoFOxf6WR68HCkhGmASGljYlYYwRVfefgoIPM603x4Fcge9/B1Z3aIq1bSQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.23.0': + resolution: {integrity: sha512-Hk8jKY0i9sjyKPJFYC71lu7Mq5ahb5sWT2zCqNxzzBCrivvCqv5GVfZurLETC5TsSusE9TRWFpynLgG+iaXmSA==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.23.0': + resolution: {integrity: sha512-7+9bD4LBQ5r+7nLnIhDgMnvMm7a7cfc28NogU3NY1sM0+0Jz7K+IwxZb4BJDY/AN1s3F26TgZ3az/bjeCshmXA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.23.0': + resolution: {integrity: sha512-vu/N1nUJxLA0IIumbxL/rR6leGA+++SQY0XL+5KPJ1O2kyvzJoLQYL1ibLGO7TRqsZ90wclboEdhIIWvr3Qsig==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.netbsd-x64@12.23.0': + resolution: {integrity: sha512-c85UPtAJfPR5+ghXS8UGRQlgxwqvz2PFaPaEzIVwUdBU+5DB4X2iuMAMlMXWS6hJ/OjqhKM6tpwyEc4Kkz40Fg==} + cpu: [x64] + os: [netbsd] + + '@pnpm/exe.win32-arm64@12.23.0': + resolution: {integrity: sha512-lx0B8HPaUEG/ovIC0PmA6HhMhXh6ud0pAWVTDNxZvAfAzuGm0RM78SCT/oBY80lbJnwA9al4sTUroqozZK9hVA==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.23.0': + resolution: {integrity: sha512-OnbBaQWQcw31m5APFNKcM8kdmM6H7k8MoaOnA2m1LsWAHX7AZKB5cdJfNwhHGBfkURcwWk1bnMXBdllujMiCFw==} + cpu: [x64] + os: [win32] + + pnpm@12.23.0: + resolution: {integrity: sha512-AtqU/68TP0YHQyKv5VL5DUC19xriWa77zNrMUIWx1hfpjWXgEx9XSLm2dEWXjuUFXX1ZpHPx7vDVBIVP781ZdQ==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.23.0': + optional: true + + '@pnpm/exe.android-x64@12.23.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.23.0': + optional: true + + '@pnpm/exe.darwin-x64@12.23.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.23.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.23.0': + optional: true + + '@pnpm/exe.linux-arm64@12.23.0': + optional: true + + '@pnpm/exe.linux-loong64@12.23.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.23.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.23.0': + optional: true + + '@pnpm/exe.linux-s390x@12.23.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.23.0': + optional: true + + '@pnpm/exe.linux-x64@12.23.0': + optional: true + + '@pnpm/exe.netbsd-x64@12.23.0': + optional: true + + '@pnpm/exe.win32-arm64@12.23.0': + optional: true + + '@pnpm/exe.win32-x64@12.23.0': + optional: true + + pnpm@12.23.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.23.0 + '@pnpm/exe.android-x64': 12.23.0 + '@pnpm/exe.darwin-arm64': 12.23.0 + '@pnpm/exe.darwin-x64': 12.23.0 + '@pnpm/exe.freebsd-x64': 12.23.0 + '@pnpm/exe.linux-arm64': 12.23.0 + '@pnpm/exe.linux-arm64-musl': 12.23.0 + '@pnpm/exe.linux-loong64': 12.23.0 + '@pnpm/exe.linux-ppc64': 12.23.0 + '@pnpm/exe.linux-riscv64': 12.23.0 + '@pnpm/exe.linux-s390x': 12.23.0 + '@pnpm/exe.linux-x64': 12.23.0 + '@pnpm/exe.linux-x64-musl': 12.23.0 + '@pnpm/exe.netbsd-x64': 12.23.0 + '@pnpm/exe.win32-arm64': 12.23.0 + '@pnpm/exe.win32-x64': 12.23.0 + +--- lockfileVersion: '9.0' settings: @@ -7,7 +184,7 @@ settings: overrides: '@module-federation/dts-plugin>adm-zip': 0.6.1 '@module-federation/dts-plugin>undici': 7.30.1 - vitest>tinypool: ^2.1.2 + semver@6: ^6.3.2 importers: @@ -1974,8 +2151,8 @@ packages: scheduler@0.27.0: resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} - semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + semver@6.3.2: + resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==} hasBin: true set-cookie-parser@2.7.3: @@ -2332,7 +2509,7 @@ snapshots: debug: 4.4.3 gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.1 + semver: 6.3.2 transitivePeerDependencies: - supports-color @@ -2350,7 +2527,7 @@ snapshots: '@babel/helper-validator-option': 7.29.7 browserslist: 4.29.5 lru-cache: 5.1.1 - semver: 6.3.1 + semver: 6.3.2 '@babel/helper-globals@7.29.7': {} @@ -3999,7 +4176,7 @@ snapshots: scheduler@0.27.0: {} - semver@6.3.1: {} + semver@6.3.2: {} set-cookie-parser@2.7.3: {} diff --git a/ui/provider/pnpm-workspace.yaml b/ui/provider/pnpm-workspace.yaml index 01ea5895..f5358816 100644 --- a/ui/provider/pnpm-workspace.yaml +++ b/ui/provider/pnpm-workspace.yaml @@ -1,6 +1,11 @@ # pnpm settings for this plugin. It is a single package with its own lockfile, # not a workspace member, so there is no `packages:` list. +# Wait a day after a release before installing it, and refuse a version +# whose provenance or trusted publisher is weaker than an earlier release's. +minimumReleaseAge: 1440 +trustPolicy: no-downgrade + # Our own packages are published and consumed across repos on the same day, so # the one-day release delay must not hold them back. minimumReleaseAgeExclude: @@ -12,8 +17,16 @@ allowBuilds: esbuild: true fsevents: false +# @tanstack/react-table ships agent skills, and pnpm 12 asks before exposing +# them. Deny them: the org decided no package's skills should run. +permissions: + '@tanstack/react-table': + skills: false + # Carried over from package.json's npm overrides. overrides: '@module-federation/dts-plugin>adm-zip': 0.6.1 '@module-federation/dts-plugin>undici': 7.30.1 - 'vitest>tinypool': ^2.1.2 + # 6.3.1, which @babel/core pulls in, was published without provenance after + # earlier semver releases had it, so trustPolicy rejects it. 6.3.2 has it. + semver@6: ^6.3.2 From 141cecd0668268049afcbe348a08730552e8c2c7 Mon Sep 17 00:00:00 2001 From: Yahya Fakhroji Date: Thu, 26 Nov 2026 10:27:55 +0700 Subject: [PATCH 2/2] ci(pnpm): check the pnpm install policy on pull requests The shared pnpm policy workflow now checks both plugin lockfiles on pull requests, pushes to main and a weekly schedule. --- .github/workflows/pnpm-policy.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pnpm-policy.yaml diff --git a/.github/workflows/pnpm-policy.yaml b/.github/workflows/pnpm-policy.yaml new file mode 100644 index 00000000..01fbdece --- /dev/null +++ b/.github/workflows/pnpm-policy.yaml @@ -0,0 +1,27 @@ +name: pnpm policy + +# Checks every pnpm project in the repository, which today is the two portal +# plugins under ui/, each with its own lockfile. + +on: + pull_request: + push: + branches: + - main + schedule: + - cron: "0 6 * * 1" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + pnpm-policy: + uses: datum-cloud/actions/.github/workflows/pnpm-policy.yaml@v1.31.0 + with: + require-pnpm: true + require-lockfile: true