megalinter icon indicating copy to clipboard operation
megalinter copied to clipboard

devskim failure: detected dubious ownership in repository

Open ahmadnassri opened this issue 11 months ago • 24 comments

Describe the bug devskim fails with message:

git config --global --add safe.directory /tmp/lint/.git
fatal: detected dubious ownership in repository at '/tmp/lint/.git'
To add an exception for this directory, call:

To Reproduce Steps to reproduce the behavior:

see the following failed run: https://github.com/ahmadnassri/action-commit-lint/actions/runs/5696529161/job/15441765582

I also replicated this locally with make lint command on that repo

Expected behavior

should probably set git config --global --add safe.directory * before running devskim

Screenshots

image

Additional context N/A

ahmadnassri avatar Jul 28 '23 21:07 ahmadnassri