Skip to content

Support checking out actions #25

Closed

Description

@drts01

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
   |               ^~~~~~~~~~~~~~~~~~~~~~~~~~

Activity

  1. rhysd commented on Aug 6, 2021

    @rhysd
    Owner

    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.

  2. drts01 commented on Aug 6, 2021

    @drts01
    ContributorAuthor

    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:.

  3. added a commit that references this issue on Aug 30, 2021
    9ae8ecf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions