-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
Fails to run on GitHub Actions #1158
Comments
As a temporary fix, we changed the permissions of the directory where the target repository is checkeout in the workflow of GitHub Actions.
The user and directory permissions for executing git commands in the Docker container will match and errors will no longer occur. |
See reviewdog/reviewdog#1158 for more details.
For those, who (like me) are confused how a change in git 2.35.2 can break e.g. reviewdog/markdownlint, which effectively uses git 2.32.1 (since its using alpine 3.14): This new behaviour has been backported to all git versions >= 2.30.x, as stated in the Release Notes for 2.35.2 This release merges up the fixes that appear in v2.30.3, |
@ovalenzuela19 you can open a PR like this: sailingpalmtree/reviewdog-flakehell-action@07a9b80 on any reviewdog action you still encounter the issue with. |
@review-dog Any update on this issue? Still facing the same issue. |
Here is a workaround for this problem. +git config --global --add safe.directory "$GITHUB_WORKSPACE" || exit 1 |
what exactly we can write in yml file of detekt config? |
As he said here, you have to create a step before reviewdog step and add this Example:
|
Or up-vote to this pull request alaegin/Detekt-Action#38 |
Does this issue happen with self-hosted runners as well...? |
git binary command dependency sometimes leads to a problem like #1158. We should remove the dependencies as much as possible. We can completely remove the git command dependency for GitHub reporters with this commit.
See reviewdog/reviewdog#1158 for more details.
This should fix the issues when we see: > reviewdog: failed to run 'git rev-parse --show-prefix': exit status 128 Reviewdog bug: reviewdog/reviewdog#1158 Reviewdoc Release Notes for v.0.14.1: https://github.com/reviewdog/reviewdog/releases/tag/v0.14.1
I get the following error in repositories that use Dockerfile with GitHub Actions.
I have investigated and it seems to be related here.
How do we fix it?
The text was updated successfully, but these errors were encountered: