Closed sladesamuel closed 1 year ago
Innnnnteresting. A solid bug report -- I can confirm I'm seeing the same behaviour when I run locally, but the action doesn't look obviously wrong to me, either. I'll fiddle around and try and figure out what's going on.
Ah! Figured it out. Your action didn't have a shell
key in the second step ("Setup Terragrunt..."). According to the parameter docs this is, indeed, required ("Required if run
is set"), and I have a vague recollection of being bitten by that myself in the dim, dark distant past. The fact that took me a bit of ruminating at the error message is another indication I really need to sit down and figure out how to translate the validation output into something that's human-readable...
If your action is, in fact, running successfully, then the best approach will be to submit a PR on the relevant page, then we can get the schema updated and then pull that into action-validator
for great winning.
In the meantime, though, I'll close this off, as it isn't really a bug in action-validator
, from the perspective of "we do what the docs say is correct", which is the standard I generally adopt.
Thanks, I'll take a look into this and make the change on my end to check it works as expected
This resolved my issue, thanks!
I've setup a reusable GitHub Action that works when running on GitHub and conforms to the GitHub documentation, but fails validation through the use of this tool.
This is the action code:
And the validation error:
From looking into the action validator code, it appears to be trying to match to an externally maintained schema. But this schema appears to follow the GitHub documentation, so I'm not sure why the tool is failing.
I initially tried using tool version
0.1.2
as mentioned through the examples. Using0.5.1
made no difference to the error.Any support/direction here would be appreciated. I'm only trialling this tool to see if it's sufficient for use within my projects, but this is a major blocker for me.