action-validator icon indicating copy to clipboard operation
action-validator copied to clipboard

Validate used action's `with:` clause

Open TWiStErRob opened this issue 2 years ago • 1 comments

Want to help get this issue implemented? Donate to the action-validator code fund.


Following validation of existence of an action and tag, I think it would be awesome if the validator grabbed action.yml and validated the with: block for required values. This would allow us to detect typos or mis-configurations early, especially in workflow_call and similar situations. Similarly for workflow_call situations, the inputs: could be checked for required and type inconsistencies in the calling with: block.

Additionally there could be a warning emitted if the default matches a provided value, but this is probably controversial, so might be worth treating it as a separate issue/enhancement.

cc @award28 FYI

TWiStErRob avatar Jul 16 '23 21:07 TWiStErRob

I wouldn't say no to a PR implementing that.

mpalmer avatar Jul 17 '23 03:07 mpalmer