-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
"Repository is not owned by current user" after latest commit for #108 #109
Comments
Hello, thanks for reporting this! 🐻
The workaround that I used for fixing #108 was creating a new user in the Docker image (as # contents of entrypoint.sh
#!/bin/sh
cp -r /app /git-home/app
cd /git-home/app
exec git-cliff "$@" This entrypoint script was required since the mounted volume was not owned by the container user. However, at the end of the day, it made the container run as non-root at all times (which is generally a good thing). This is where this GitLab CI issue originates from. When you specify an image and empty entrypoint, GitLab runner drops you to the shell of the image. For example, if you run As you guessed, we are Just a note, same You need to edit your script:
- mkdir app
- cp -r .git app
- ls -la app
- cd app
- git-cliff Conclusion5cb991d4e3a39dd15ae22b661c23d18ccbd45004 I decided to remove |
|
I missed this back when this issue was fresh (I see it is dates when I was traveling) but having just fought off similar issues in Docker that has to run in all of GH Actions, locally, and on GitLab CI, I came up with a bit different solution. In my case I had to be able to make commits inside the |
Hello @alerque, that sounds great. It's always nice to see the alternative implementations and possibly improve the current workaround. Please feel free to share! |
Describe the bug
ERROR git_cliff > Git error:
repository path '/builds/project/path is not owned by current user; class=Config (7); code=Owner (-36)
The error is caused by the change of directory and ownership + enabling safe directory in the Dockerfile by default in 4fc2217
To Reproduce
Using the following gitlab.yml configuration:
Expected behavior
I know I am taking the risky path here and following the
latest
tag.This is more of an informative bug report, but I believe this should have continued to work, as we automatically add the directory to the safe property of git.
Am I missing something here?
System (please complete the following information):
The text was updated successfully, but these errors were encountered: