-
-
Notifications
You must be signed in to change notification settings - Fork 861
Mark /app as safe directory for Git #824
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
base: main
Are you sure you want to change the base?
Conversation
In my github actions I got error ``` The repository at "/app" does not have the correct ownership and git refuses to use it: fatal: detected dubious ownership in repository at '/app' To add an exception for this directory, call: git config --global --add safe.directory /app ``` This PR fixes the issue by adding an actions to mark /app directory as safe for git.
Hi @danut007ro! I would suggest adding this command to the Dockerfile for the |
Sure @7-zete-7 , have a look now. Thanks |
Hum... I don’t think we should add this. |
Closing, as I am unable to reproduce on a new project. Will reopen if needed. Thank you. |
Managed to reproduce on a new clean project. Here's the PR on that new project https://github.com/danut007ro/symfony-docker-test/pull/1/files with result https://github.com/danut007ro/symfony-docker-test/actions/runs/16966099280/job/48090334555?pr=1 As you can see, the warning occurs when running ![]() |
In my github actions I got error
This PR fixes the issue by adding an actions to mark /app directory as safe for git.