`fatal: unsafe repository (REPO is owned by someone else)` with ubuntu 20.04 container
See original GitHub issueHello!
This started happening recently; I see it both with v2.4.0 and v.3.0.0:
Syncing repository: wez/wezterm
Getting Git version info
Deleting the contents of '/__w/wezterm/wezterm'
Initializing the repository
/usr/bin/git init /__w/wezterm/wezterm
Initialized empty Git repository in /__w/wezterm/wezterm/.git/
/usr/bin/git remote add origin https://github.com/wez/wezterm
Error: fatal: unsafe repository ('/__w/wezterm/wezterm' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /__w/wezterm/wezterm
Error: The process '/usr/bin/git' failed with exit code 128
Is there a way to configure/advise the action how to handle this? Is this really a problem elsewhere in the GH actions environment?
Issue Analytics
- State:
- Created a year ago
- Reactions:181
- Comments:92 (2 by maintainers)
Top Results From Across the Web
git - Fatal error "unsafe repository ('/home/repon' is owned by ...
Here are four possible solutions: trust the Git directory (do it if you know the directory contents are safe)
Read more >Solution to GIT: "unsafe repository ('some-repo' is owned by ...
This post looked at what causes the unsafe repository ('some-repo' is owned by someone else) Git error. We said that this error occurs...
Read more >Unsafe repository (REPO) is owned by someone else
I'm trying to pull some updates to my production repository, in a ubuntu server, but when i try to run any git command,...
Read more >What to do when Git reports Fatal: Unsafe Repository
Earlier this month - April 2022 - Git released an update (2.35.2) to fix a security vulnerability. The problem was that on multi-user...
Read more >install latest git client from PPA to fix 'unsafe repository' errors ...
Since the announcement of CVE-2022-24765, newer git clients from the Ubuntu security and archive package repositories may throw errors about ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it is related to this: https://github.blog/2022-04-12-git-security-vulnerability-announced/
Thanks for the report, our team is working on a fix