Merge pull request #21316 from backstage/blam/dont-pass-through-all-task

This commit is contained in:
Ben Lambert
2023-11-15 13:30:19 +01:00
committed by GitHub
2 changed files with 9 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Fix issue with Circular JSON dependencies in templating
@@ -290,14 +290,15 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
input: step.input
? this.render(
step.input,
{ ...context, ...i, ...task },
{ ...context, secrets: task.secrets ?? {}, ...i },
renderTemplate,
)
: {},
}));
for (const iteration of iterations) {
const actionId =
action.id + (iteration.each ? `[${iteration.each.key}]` : '');
const actionId = `${action.id}${
iteration.each ? `[${iteration.each.key}]` : ''
}`;
if (action.schema?.input) {
const validateResult = validateJsonSchema(