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

sparse-checkout argument of actions/checkout causes actionlint error #318

Closed
jamiekt opened this issue Jul 4, 2023 · 3 comments
Closed

Comments

@jamiekt
Copy link

jamiekt commented Jul 4, 2023

Making you aware of a possible bug.

actions/checkout recently received support for sparse-checkout. This was added in actions/checkout#1317 and is documented at https://github.com/actions/checkout#fetch-only-a-single-file

I tried using it in one of my workflows like so:

            steps:
                - name: Checkout some repo
                  uses: actions/checkout@v3
                  with:
                      repository: owner/repo
                      sparse-checkout: |
                          .env

and actionlint threw an error:

.github/workflows/workflow.yml:35:23: input "sparse-checkout" is not defined in action "actions/checkout@v3". available inputs are "clean", "fetch-depth", "github-server-url", "lfs", "path", "persist-credentials", "ref", "repository", "set-safe-directory", "ssh-key", "ssh-known-hosts", "ssh-strict", "submodules", "token" [action]

@rhysd
Copy link
Owner

rhysd commented Jul 4, 2023

Could you provide your actionlint version?

@jamiekt
Copy link
Author

jamiekt commented Jul 4, 2023

Apologies, I should have done that shouldn't I?

its run from super-linter v4 (github/super-linter:v4). The output from running

docker run --entrypoint /bin/bash github/super-linter:v4 -c 'actionlint --version'

at the time of writing is:

1.6.22
installed by building from source
built with go1.19.2 compiler for linux/amd64

Confirmed by looking at https://github.com/super-linter/super-linter/blob/985ef206aaca4d560cb9ee2af2b42ba44adc1d55/Dockerfile#L23

@rhysd
Copy link
Owner

rhysd commented Jul 5, 2023

That's very old. Current latest version is v1.6.25. I'm not super-linter user. So please ask the question at super-linter repository.

@rhysd rhysd closed this as completed Jul 5, 2023
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