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

reviewdog: failed to run 'git rev-parse --show-prefix': exit status 128 #43

Closed
Wanghx0991 opened this issue Apr 13, 2022 · 3 comments
Closed

Comments

@Wanghx0991
Copy link

hi,
recently, when we use the action-misspel during the Github Actions, we found this error: reviewdog: failed to run 'git rev-parse --show-prefix': exit status 128 , do you have any suggestion?
The relative link is here: https://github.com/aliyun/terraform-provider-alicloud/runs/6002479769?check_suite_focus=true

@nabeken
Copy link

nabeken commented Apr 13, 2022

I'm also hitting this and I found this is a side effect of https://github.blog/2022-04-12-git-security-vulnerability-announced/

So far I'm working around this by nabeken@11be15a

Also, I have opened a support ticket for Github to discuss what should we (actions author) do for this.

Detail

If Actions is running inside a container, /github/workspace will be mounted but it has a different ownership than a executing user (root) so Git just refused to work with the following message:

fatal: unsafe repository ('/github/workspace' is owned by someone else)
To add an exception for this directory, call:

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

@kimromi
Copy link

kimromi commented Apr 13, 2022

I hope this is helpful.
reviewdog/reviewdog#1158 (comment)

@haya14busa
Copy link
Member

close as dup of reviewdog/reviewdog#1158 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants