Closed zerwes closed 2 years ago
We had same issues as well, ended up setting uses: ansible-community/ansible-lint-action@c37fb7b4bda2c8cb18f4942716bae9f11b0dc9bc
to avoid that.
On our case, we are using the old 2.9 form without fully qualified module names, so when it finally ran, we failed on syntax and was unable to find a way to tell ansible-lint what standard of modules we use.
yes, my current fix is similar:
- uses: ansible/ansible-lint-action@main
+ uses: ansible/ansible-lint-action@89eb7dec58ac81d46476b715d98e0ec9a411b63f
We moved a few months ago from 2.9 to 2.12.2 aka. 5.3.0 and have the same fully qualified module names issue for now. As we use a fixed ansible (-lint) version across all repos, we need a option to pin to a fixed ansible / linter version.
The real bug was that this release note entry went in by mistake. With current version is no longer possible to change ansible-lint version, mainly because the tag points to the linter version. We no longer install any python dependencies and use a pre-build container.
To pin ansible-lint version use tags, like v6.0.1
. From now on, we will (try to) ensure that tags from this repository point to an image that has exactly that version of the linter, making much easier to identify what is used.
@ssbarnea the tag -> version for the future seems OK and consistent for me. could you please tag 89eb7dec58ac81d46476b715d98e0ec9a411b63f with something like pre-v6?
I created v4-eol
tag.
release 6 is is breaking
override-deps
despite the fact of mentioning the feature in the release notes: Adding functionality to pin ansible-lint versions through input variable (https://github.com/ansible/ansible-lint-action/pull/17) @xUnholy If the syntax has changed, this is not reflected in the README. Example actions: OK: https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-role-unbound/runs/5623708515?check_suite_focus=true ERR: https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-role-unbound/runs/5655073119?check_suite_focus=trueDuring the last days, the changes here gave me some headache:
override-deps
... (I would appreciate a proper tagging using the major ansible-lint-version) (#23)override-deps
is broken ...bisect result: