diff --git a/actions-workflow-parser/src/model/converter/job/inputs.ts b/actions-workflow-parser/src/model/converter/job/inputs.ts index 92a6b88..ebd9467 100644 --- a/actions-workflow-parser/src/model/converter/job/inputs.ts +++ b/actions-workflow-parser/src/model/converter/job/inputs.ts @@ -32,7 +32,7 @@ export function convertWorkflowJobInputs(context: TemplateContext, job: Reusable if (inputValues !== undefined) { for (const [_, [name, value]] of inputValues) { - if (inputDefinitions === undefined || !inputDefinitions.has(name.toLowerCase())) { + if (!inputDefinitions?.has(name.toLowerCase())) { context.error(value, `Invalid input, ${name} is not defined in the referenced workflow.`); } }