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

ansible-lint fails validating the .github/workflows/ansible-lint.yml #178

Closed johanneskastl closed 1 year ago

johanneskastl commented 1 year ago

I am not sure if the GitHub UI is lying, but it looks like ansible-lint is failing when validating the .github/workflows/ansible-lint.yml file.

https://github.com/johanneskastl/ansible-role-RedHat_install_epel-release/actions/runs/5641060520

Annotations
1 error

 yaml[truthy]: .github/workflows/ansible-lint.yml#L2
Truthy value should be one of \[false, true]

There is no truthy value in line 2 of that file: https://github.com/johanneskastl/ansible-role-RedHat_install_epel-release/blob/main/.github/workflows/ansible-lint.yml#L2

Any ideas what goes wrong here?

thozza commented 1 year ago

I'm seeing the same thing in https://github.com/osbuild/ansible-osbuild-worker/actions/runs/5693484101/job/15432675093?pr=4

johanneskastl commented 1 year ago

At least there is a workaround (in my case for a single role):

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

Limiting the scope to the role's tasks/main.yml file ignores the .github/workflows/ file(s).

port19x commented 1 year ago

Same issue here