-
Notifications
You must be signed in to change notification settings - Fork 62
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
insufficient permission for adding an object to repository database .git/objects error: Error building trees #90
Comments
Probably this is the root cause |
For now I workarround the issue as following:
Doing the |
Filed this issue with the upstream action being used terraform-docs/gh-actions#90
I'm experimenting exactly same issue, using
@marcofranssen's workaround solves the issue but I would like to understand the cause. What's weird to me is that it was working fine, but suddenly it started crashing. I compared both workflows and with the same versions for all actions (same SHA), the only difference between the previous job that works and now is a new version of the image runner, I can't test with the old version as it's impossible to specify an image version.
|
terraform-docs runs in a container, and for suitably small repositories it can end up creating .git/objects which are owned by root. This resets the ownership back to the runner user. See terraform-docs/gh-actions#90
Describe the bug
On a small new repo this action creates new folders in the
.git/objects
folder. These objects are owned byroot:root
as opposed torunner:docker
. Therefore any other actions fail when trying to write to git.How can we reproduce it?
See the logs of this workflow run:
https://github.com/marcofranssen/terraform-provider-curl/actions/runs/2909746851
Environment information
Ubuntu GitHub runner.
The text was updated successfully, but these errors were encountered: