actionlint icon indicating copy to clipboard operation
actionlint copied to clipboard

feature request: detect invalid reference to a workflow file

Open jerguslejko opened this issue 1 year ago • 1 comments

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 avatar Jan 16 '24 21:01 jerguslejko

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?

jerguslejko avatar Jan 17 '24 12:01 jerguslejko