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

Cannot rebase because of Github security issue #92

Closed
gent-ahmeti opened this issue Apr 13, 2022 · 4 comments · Fixed by #94
Closed

Cannot rebase because of Github security issue #92

gent-ahmeti opened this issue Apr 13, 2022 · 4 comments · Fixed by #94

Comments

@gent-ahmeti
Copy link

Looks like this action is affected by: https://github.blog/2022-04-12-git-security-vulnerability-announced/

More information can be found in this thread: actions/checkout#760

Since the rebase is running on a Docker container we can't use the workaround given in this thread, making /github/workspace a safe directory

I think the solution is to use the latest git version inside the Docker container

Error that I'm getting with version 1.4:

Collecting information about PR #*PR number* of *Repo name*...
Base branch for PR #*PR number* is *Base branch*
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
@dana-ciocan
Copy link

dana-ciocan commented Apr 13, 2022

Also experiencing this issue here. Is it going to be a case of waiting until the relevant Docker image is updated in Docker hub?

@aliammaar
Copy link

Looks like this action is affected by: https://github.blog/2022-04-12-git-security-vulnerability-announced/

More information can be found in this thread: actions/checkout#760

Since the rebase is running on a Docker container we can't use the workaround given in this thread, making /github/workspace a safe directory

I think the solution is to use the latest git version inside the Docker container

Error that I'm getting with version 1.4:

Collecting information about PR #*PR number* of *Repo name*...
Base branch for PR #*PR number* is *Base branch*
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

+1

fischman-bcny added a commit to thebrowsercompany/rebase that referenced this issue Apr 15, 2022
fkorotkov pushed a commit that referenced this issue Apr 15, 2022
xzile pushed a commit to Interfolio/rebase that referenced this issue Apr 19, 2022
xzile pushed a commit to Interfolio/rebase that referenced this issue Apr 19, 2022
xzile pushed a commit to Interfolio/rebase that referenced this issue Apr 19, 2022
cjw6k pushed a commit to SonarSoftwareInc/rebase that referenced this issue Apr 26, 2022
@tn3rb
Copy link

tn3rb commented Oct 7, 2022

getting a very similar error today:

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

@pridumkuvatyj
Copy link

Getting the same error also.

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

Successfully merging a pull request may close this issue.

5 participants