Coder Social home page Coder Social logo

Comments (5)

ssbarnea avatar ssbarnea commented on June 11, 2024 1

@MikeJansen Don't worry, I have multiple ways of addressing it in next release.

from ansible-lint-action.

ssbarnea avatar ssbarnea commented on June 11, 2024

Unable to reproduce, please post link to job failing with current version.

from ansible-lint-action.

hemberger avatar hemberger commented on June 11, 2024

I'm still seeing this issue with the latest version of the action (6.10.0). Here's an example job:

https://github.com/smrealms/seed-server/actions/runs/3779503586/jobs/6424809722

Note that I'm not using git config --global --add safe.directory /github/workspace in my workflow. Is this actually the recommended solution? Here's my workflow:

jobs:
  lint:
    name: Ansible Lint
    runs-on: ubuntu-22.04

    steps:
      - name: Checkout the source code
        uses: actions/checkout@v3

      - name: Run ansible-lint
        uses: ansible-community/[email protected]

from ansible-lint-action.

MikeJansen avatar MikeJansen commented on June 11, 2024

I'm getting the same. I note that my output from actions/checkout has:

/usr/bin/git config --global --add safe.directory /home/runner/work/XXX

But the ansible/ansible-lint-action has:

WARNING  Failed to discover lintable files using git: fatal: 
   detected dubious ownership in repository at '/github/workspace'
To add an exception for this directory, call:

	git config --global --add safe.directory /github/workspace

My jobs spec is almost identical:

jobs:
  ansible-lint:
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3
      - uses: ansible/ansible-lint-action@v6

EDIT: Just noticed the bind mount on the docker run which explains the /home/runner/work... => /github/workspace.

from ansible-lint-action.

MikeJansen avatar MikeJansen commented on June 11, 2024

Might be related to actions/runner#2033 ? Might have to do with the docker container being launched as root user as mentioned in this comment.

from ansible-lint-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.