fix(release): include evidence validator in decision checkout (#130803)

This commit is contained in:
Vincent Koc
2026-08-27 16:08:03 +08:00
committed by GitHub
parent 2f4c71d8dd
commit 21b41efc7b
2 changed files with 26 additions and 0 deletions
+24
View File
@@ -9753,6 +9753,30 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
expect(telegramProvenanceHelper).not.toContain(".baseRefName ==");
});
it("checks out the complete Release Decision evidence validator closure", () => {
const workflow = readWorkflow(".github/workflows/full-release-validation.yml");
const checkout = workflow.jobs.release_decision.steps.find(
(step: WorkflowStep) => step.name === "Checkout release decision tooling",
);
const sparseCheckoutPaths = String(checkout?.with?.["sparse-checkout"] ?? "")
.split("\n")
.map((line) => line.trim())
.filter(Boolean);
expect(sparseCheckoutPaths).toEqual([
"scripts/full-release-validation-state.mjs",
"scripts/full-release-validation-policy.mjs",
"scripts/release-ci-summary.mjs",
"scripts/lib/plain-gh.mjs",
]);
for (const sparsePath of sparseCheckoutPaths) {
expect({ sparsePath, exists: existsSync(sparsePath) }).toEqual({
sparsePath,
exists: true,
});
}
});
it("keeps maturity scorecard release docs opt-in from release checks", () => {
const releaseWorkflow = readReleaseChecksWorkflow();
const job = releaseWorkflow.jobs.maturity_scorecard_release_checks;