Open pociej opened 3 days ago
Can you provide your workflow input (smaller is better) which can reproduce this issue?
@pociej make sure you are targeting the correct files, I had a problem yesterday with this too, then I realized I had to change the glob to *.{yaml,yml}
I tried to reproduce it but I could not.
.github/actionlint.yaml
:
paths:
.github/workflows/**/*.yaml:
ignore:
- 'shellcheck reported issue in this script: SC2086:.+'
.github/workflows/test.yaml
:
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
# This causes SC2086
- run: echo $FOO
And I ran:
actionlint
The command did not report any error. When I removed actionlint.yaml
, it reported an error. So the command seems to work as intended.
Can you check actionlint
command is the latest by actionlint -version
?
This is happening to me too.
.github/actionlint.yml:
paths:
.github/workflows/**/*.yml:
ignore:
- 'the runner of ".+" action is too old to run on GitHub Actions'
.github/workflows/simple.yml:
on:
pull_request:
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Run:
actionlint
Output:
simple.yml:7:15: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
|
7 | - uses: actions/checkout@v3
| ^~~~~~~~~~~~~~~~~~~
Version:
actionlint -version
1.7.4
installed by building from source
built with go1.23.2 compiler for darwin/arm64
Note: If I run actionlint -ignore 'the runner of ".+" action is too old to run on GitHub Actions.'
it is ignored.
Hi I observed strange experience Im unable to understand.
here is me config
It was working for me perfectly fine and stopped because of reasons i dont understand. Im now hited by errors listed on
ignore
listlike that
Im sure the config file is properly loaded as
self-hosted-runners
are there. Im running actionlint as documented :any idea of what could be the reason? Thx in advance.