-
Notifications
You must be signed in to change notification settings - Fork 33
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
Git can't commit because of "dubious ownership" #352
Comments
What do you see for |
The output of running |
Right, but who owns |
Sorry, the output of
|
Current workaround is adding this: - uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest
env:
...
with:
entrypoint: /bin/bash
args: -c "git config --global --add safe.directory /github/workspace && cd /github/workspace && /app/flatpak-external-data-checker --update --never-fork org.signal.Signal.yaml" |
When running the checker in a container containing a recent git, it will often fail because the container user is not the same as the user owning the repository. Register the checkout as a safe directory if it isn't already. Fixes: flathub-infra#352
When running the checker in a container containing a recent git, it will often fail because the container user is not the same as the user owning the repository. Register the checkout as a safe directory if it isn't already. Fixes: flathub-infra#352
When running the checker in a container containing a recent git, it will often fail because the container user is not the same as the user owning the repository. Register the checkout as a safe directory if it isn't already. Fixes: flathub-infra#352
Hmm, #356 didn't work. I think I was too eager assuming that |
Now it really worked after #357. |
Hello, I still have this issue today. Here's my workflow file:
|
I just ran into this same problem today. The fix I made before assumes that the manifest is in the root of the git checkout. Obviously, that's not always the case. |
I'm the maintainer for https://github.com/flathub/org.signal.Signal and we recently introduced the beta branch of Signal. From my understanding, we need an own Github action for the beta branch.
This worked until yesterday.
I guess the fedc container updated the git version and is now running git in an environment which is deemed "unsafe" by git.
You can see from the action log: https://github.com/flathub/org.signal.Signal/actions/runs/4313990291/jobs/7526468080
This issue is also tracked for the actions/checkout #1169. There seems to be no nice solution and only a workaround by running
inside the container before committing changes.
The text was updated successfully, but these errors were encountered: