From c759be990c032c2474d2d0bad519c643dec11a3a Mon Sep 17 00:00:00 2001 From: Md Nurnobi Date: Sun, 22 Nov 2026 13:26:34 +0000 Subject: [PATCH] fix(P04-S01C): reconcile nested PostCSS 8.5.33 with baseline metadata and gate runtime advisories --- .gitea/workflows/datastack-ci.yml | 10 ++++++++++ package-lock.json | 26 -------------------------- package.json | 5 +++++ 3 files changed, 15 insertions(+), 26 deletions(-) diff --git a/.gitea/workflows/datastack-ci.yml b/.gitea/workflows/datastack-ci.yml index 73302d9..ccf1162 100644 --- a/.gitea/workflows/datastack-ci.yml +++ b/.gitea/workflows/datastack-ci.yml @@ -217,6 +217,16 @@ jobs: fixAvailable: item.fixAvailable })); } + if (scope === "runtime") { + const counts = audit.metadata.vulnerabilities; + if (!Number.isInteger(counts.high) || !Number.isInteger(counts.critical)) { + throw Error("Incomplete runtime npm advisory severity counts"); + } + if (counts.high > 0 || counts.critical > 0) { + throw Error("DATASTACK_RUNTIME_SECURITY_GATE_FAILED high=" + counts.high + " critical=" + counts.critical); + } + console.log("DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO"); + } } NODE git diff --exit-code -- package.json package-lock.json diff --git a/package-lock.json b/package-lock.json index 0c537e4..58e7f19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10599,32 +10599,6 @@ } } }, - "node_modules/next/node_modules/postcss": { - "version": "8.4.31", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, "node_modules/nicki": { "version": "6.1.1", "license": "MIT", diff --git a/package.json b/package.json index 06c371a..354c144 100644 --- a/package.json +++ b/package.json @@ -61,5 +61,10 @@ "optionalDependencies": { "lightningcss-linux-arm64-musl": "^1.30.1", "lightningcss-linux-x64-musl": "^1.30.1" + }, + "overrides": { + "next": { + "postcss": "8.5.33" + } } }