-
Notifications
You must be signed in to change notification settings - Fork 159
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
Unable to ignore errors by paths
config
#481
Comments
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 |
I tried to reproduce it but I could not.
paths:
.github/workflows/**/*.yaml:
ignore:
- 'shellcheck reported issue in this script: SC2086:.+'
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 Can you check |
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:
Output:
Version: actionlint -version
1.7.4
installed by building from source
built with go1.23.2 compiler for darwin/arm64 Note: If I run |
Thank you @chrisponton for the steps. However, I still cannot reproduce this issue... Here are the steps I tried: rm -rf ./tmp # Ensure the directory doesn't exist
mkdir ./tmp && cd ./tmp
mkdir -p .github/workflows
vim .github/actionlint.yml # Write the config file
vim .github/workflows/simple.yml # Write the workflow file
git init
actionlint And $ which actionlint
/usr/local/bin/actionlint
$ actionlint -version
1.7.4
installed by building from source
built with go1.23.2 compiler for darwin/amd64 Is anything different from what you tried? And one additional question. How do you run |
paths
config
Hi @rhysd. Thank you for trying to replicate it again. I tried your steps and it worked with a new folder so revisited my repository, cleared it out and added it again. It started to work which was odd... I do wonder if I was doing something silly like not running Anyway, this works for me now. Thank you. I did although have something odd where an issue was not found locally but was in the GitHub action, adding further ignores resolved it though. The action was using this method. Happy for this issue to be closed. |
@chrisponton I appreciate your effort for the repro. That sounds weird. I guess there would be some hidden pre-condition. Let's keep this issue open with |
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.
The text was updated successfully, but these errors were encountered: