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

Validate the action and action-version exists in workflows

Open award28 opened this issue 2 years ago • 3 comments

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


Background

The action-validator should validate that any actions in the - use: {action}@{version} format exist. If this is not the case, an error should be reported.

Scope of Work

  • When validating an action step, if the action step has the uses key, validate that the action and specific version exist in GitHub.
    • If this is not the case, throw an error.

award28 avatar Mar 06 '23 23:03 award28

I'll start looking into this issue and add any details that I come across. Would be happy to raise a PR for this one.

award28 avatar Mar 06 '23 23:03 award28

This would certainly be an interesting additional validation. My only reservation is that it would presumably slow down validation a bit because of the network calls. Putting it behind a flag (something like --remote-checks perhaps) would work around that concern.

I'd love to take a look at a PR when you've got one together.

mpalmer avatar Mar 07 '23 05:03 mpalmer

@mpalmer The PR for this issue is ready for review when you have the time

award28 avatar Mar 18 '23 22:03 award28