P04-S01C: verified PostCSS security lock reconciliation and runtime advisory gate (#5)
fix(p04-s01c): accept scoped PostCSS reconciliation with CI #85 7/7 PASS [skip ci] Preserve dependency graph and unrelated metadata; add runtime high/critical CI gate. Notes/001–006 document acceptance. Production release remains NO-GO.
This commit was merged in pull request #5.
This commit is contained in:
1 parent
fac0934a00
commit
2d467ff149
9 files changed
+164
-26
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user