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

Autodiscover files to validate

Open anttiharju opened this issue 1 month ago • 1 comments

Hi, thanks for this awesome tool.

I've been using it in CI and locally like this:

git ls-files -z ".github/*/*.yml" "*/action.yml" | xargs -0 action-validator --verbose

This is bit of an incantation and I would love for the tool to be a bit more ergonomic. Given that the focus is on GitHub Actions, it should be safe to assume that any of the files that need validating are tracked by Git, so I think we could bake in the git ls-files -z ".github/*/*.yml" "*/action.yml", so that the tool could be used like this:

action-validator

this would be similar to how actionlint works, it can be simply used like this:

actionlint

anttiharju avatar Oct 31 '25 12:10 anttiharju

I wouldn't say no to a PR that implemented auto-discovery, although I'm not (yet?) comfortable making auto-discovery the default -- I feel like there's potential dragons lurking behind shelling out when passed no arguments. Definitely having a -a / --auto option would be a cool addition, though.

mpalmer avatar Nov 01 '25 03:11 mpalmer