fix: scope envreuse artifact collection to ci plan (#2174)

This commit is contained in:
Lyon
2026-06-26 03:23:55 +08:00
committed by GitHub
parent d25e67ebbd
commit 2e9e4bd663
3 changed files with 17 additions and 2 deletions
+3
View File
@@ -532,6 +532,9 @@ test("v03 render keeps node identity as data instead of generated structure", as
assert.ok(generatedPaths.includes("argocd/application-v03.yaml"));
assert.ok(generatedPaths.includes("tekton-v03/pipeline.yaml"));
assert.ok(generatedPaths.includes("runtime-v03/external-postgres.yaml"));
const pipeline = await readFile(path.join(outDir, "tekton-v03", "pipeline.yaml"), "utf8");
assert.match(pipeline, /--external-service-report-dir \/workspace\/source\/service-results/u);
assert.match(pipeline, /--ci-plan-path \/workspace\/source\/affected-services\.json/u);
assert.ok(!generatedPaths.includes("runtime-v03/postgres.yaml"));
for (const relativePath of generatedPaths) {
assert.doesNotMatch(relativePath, /g14/i, `legacy node token leaked into generated path ${relativePath}`);