actionlint icon indicating copy to clipboard operation
actionlint copied to clipboard

[Feature] Detect invalid inputs

Open eifinger opened this issue 2 years ago • 2 comments

I have several workflows which can be triggered manually (workflow_dispatch) and by other workflows (workflow_call). Usually those take the same inputs and sometimes I forget to declare the inputs for both triggers.

This leads to errors like Invalid input, missingInput is not defined in the referenced workflow.

I created a sample project to show this. This workflow calls this workflow with missingInput. As it can be seen in this run this is invalid as missingInput is not defined as an input for workflow_call.

It would be great if actionlint would detect that.

Constraint: As checking remote workflows would include to download and parse them I would restrict this feature for workflows of the same repository.

eifinger avatar Aug 10 '23 07:08 eifinger

~Some extension in vscode detects the problem. I have to find out which one it is~ The GitHub Actions vscode Extension catches the error. image

eifinger avatar Aug 10 '23 08:08 eifinger

I agree this would be very handy and I'm willing to take it on as this is the most common issue in workflows that is not caught by actionlint on my current development team. Has anyone else started work on this?

EwiththeBowtie avatar Sep 27 '23 23:09 EwiththeBowtie