ansible / ansible-lint-action

❗️Replaced by https://github.com/marketplace/actions/run-ansible-lint
https://github.com/marketplace/actions/run-ansible-lint
MIT License
254 stars 132 forks source link

config ignored ? #167

Closed diepes closed 1 year ago

diepes commented 1 year ago

Added a config file to my git-repo

.config/ansible-lint.yml

It works locally when I change the profile in the config. The GitHub action does not use the config file.

Action

...
      - name: Run ansible-lint
        # replace `main` with any valid ref, or tags like `v6`
        uses: ansible/ansible-lint-action@v6.15.0
...

image

till commented 1 year ago

Had a similar problem, but last time I checked, it was supposed to be .config/ansible-lint but that doesn't seem to work either anymore. Probably (yet) another change in ansible-lint that I missed. ;) [Excuse my snarkyness.]

I went back to an older version of the action and pinned it — see below, and now my workflow runs.

This is how:

# .config/ansible-lint.yml
skip_list:
  - experimental
  - fqcn-builtins

My workflow contains this:

jobs:
  ansible_lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: ansible-community/ansible-lint-action@v6.3.0
        with:
          path: "ansible/"

If you still have issues, I would suggest to test with act locally as it saves you some time waiting for actions to run.

teal-bauer commented 1 year ago

I have this issue with @v6 and @main both. I tried all config file locations I could think of, but I could not get ansible-lint to run in online mode. Appreciate any pointers...