mpalmer / action-validator

Tool to validate GitHub Action and Workflow YAML files
GNU General Public License v3.0
271 stars 25 forks source link

Validate used action's `with:` clause #56

Open TWiStErRob opened 1 year ago

TWiStErRob commented 1 year ago

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

mpalmer commented 1 year ago

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