-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support linting action metadata files #46
Comments
Hey, I was wondering if there is any plans to implement this? |
+1. This would be very useful! |
@rhysd : truly appreciate your good work here! ✨ 🙇 if someone was interested in contributing support for this feature, what would be some considerations for adding this that someone unfamiliar with the project might review?
Thank you for discussing what this might entail as I genuinely want to see if we can help explain to someone who might be willing and capable of doing the work. 😹 |
Some ideas:
|
one thing that might help is this: https://check-jsonschema.readthedocs.io/en/stable/usage.html pre-commit example:
Note however that this will not lint the inside of scripts, it will just confirm that your action.yaml schema is correct. |
I'm very interested in seeing this feature added. I started working on it, then realized that @msw-kialo already had a completely functional PR of it: #366 I pulled this PR locally, and merged in the ~250 updates from rhysd/actionlint (there were a handful of fairly easy merge conflicts to deal with), and was able to successfully test the PR locally. I'd encourage others to also test the change and provide feedback in the PR. |
Would be great to see this implemented, we've had a couple of issues with developers assuming that the shell commands contained in their composite actions' This has resulted in a couple of defects getting merged that might otherwise have been caught. |
It would be great to have support for linting action files as well as workflow files.
Especially with the recent release of composite actions, it seems that building private actions will be a common way to DRY up workflow files. Currently there is a gap in linting, because the workflow files are covered but anything moved to an action is not.
The text was updated successfully, but these errors were encountered: