Skip to content
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

Regression - github action no longer works after commit b4018c22f8fe8371bd6845d0cd62cebea54ce012 #4234

Open
Hekzory opened this issue Jun 27, 2024 · 2 comments
Assignees
Labels

Comments

@Hekzory
Copy link

Hekzory commented Jun 27, 2024

Summary

Before I could run ansible-lint github action in non-root repository directory via working_directory variable (actual config in screenshot below). It would also read my ansible.cfg, install requirements, etc. in that specific directory

Now I can't. If this is not a regression but a breaking change, how can I achieve it now?

Pretty sure it broke after b4018c2, or really close to that commit

Issue Type
  • Bug Report
OS / ENVIRONMENT

GitHub Actions, ansible-lint@main

STEPS TO REPRODUCE

Here is my github actions config

image

Desired Behavior

It works

Actual Behavior

Here is a screenshot of the error:

image

@Hekzory Hekzory added bug new Triage required labels Jun 27, 2024
@Hekzory Hekzory changed the title Regression after commit b4018c22f8fe8371bd6845d0cd62cebea54ce012 Regression - github action no longer works after commit b4018c22f8fe8371bd6845d0cd62cebea54ce012 Jun 27, 2024
@ostefek99
Copy link

I do observe the same issue. The GitHub Action is working in version v24.6.0 but it breaks in v24.6.1.

Working version v24.6.0:
image

Stopped working in v24.6.1:
image

@Qalthos Qalthos self-assigned this Jul 3, 2024
@audgirka audgirka removed the new Triage required label Jul 3, 2024
@solomonjames
Copy link

There is an assumption the working directory is one with a .git folder.

Current work around is to create a fake .git directory in your working directory.

      - name: Add fake .git dir
        run: mkdir -p <working_directory>/.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

5 participants