Skip to content
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

Support checking out actions #25

Closed
drts01 opened this issue Aug 6, 2021 · 2 comments
Closed

Support checking out actions #25

drts01 opened this issue Aug 6, 2021 · 2 comments

Comments

@drts01
Copy link
Contributor

drts01 commented Aug 6, 2021

I have a GitHub org with private repos, which includes private actions. While official support for private actions is in GitHub's backlog, I am working around this by using action/checkout before use: ./.github/actions/my-action. So during linting, I get:

test.yaml:13:15: neither action.yaml nor action.yml is found in directory "github/actions/my-action" [action]
   |
13 |       - uses: ./github/actions/my-action
   |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
@rhysd
Copy link
Owner

rhysd commented Aug 6, 2021

That's not possible because actionlint does not know where the my-action directory can be checked out. And modifying user's directory implicitly by linter is not good because private repositories often contain several confidential things. It possibly leads security incidents.

Can you try to ignore the error when you run without checking out the action?

actionlint -ignore 'neither action.yaml nor action.yml is found in directory'

This simply ignores the check when it is not available.

@drts01
Copy link
Contributor Author

drts01 commented Aug 6, 2021

I missed there is a way to ignore tests. Thank you.

My original thought was to do something like checking if there is a checkout earlier in the job to that path. But then that would break Local action inputs validation at with:.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants