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

feature request: detect invalid reference to a workflow file #391

Open
jerguslejko opened this issue Jan 16, 2024 · 1 comment
Open

feature request: detect invalid reference to a workflow file #391

jerguslejko opened this issue Jan 16, 2024 · 1 comment

Comments

@jerguslejko
Copy link

jerguslejko commented Jan 16, 2024

I would like to get a lint failure, when I use incorrect reference to a workflow file in the repo.

example:

  # ...

   - name: Deploy
     uses: ./.github/actions/whoops-I-put-wrong-path-here
     with:
       arg1: value1
@jerguslejko jerguslejko changed the title detect invalid reference to a workflow file feature request: detect invalid reference to a workflow file Jan 16, 2024
@jerguslejko
Copy link
Author

ah, I just read this in the docs

Note that actionlint does not report any error when a directory for a local action does not exist in the repository because it is a common case where the action is managed in a separate repository and the action directory is cloned at running the workflow. (See https://github.com/rhysd/actionlint/issues/25 and https://github.com/rhysd/actionlint/issues/40 for more details).

is there a way to run actionlint in a stricter mode, where it only considers code that is currently checked out?

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

1 participant