-
Notifications
You must be signed in to change notification settings - Fork 47
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
/github/home/.gitconfig: Permission denied #39
Comments
Hello, |
Hi, Unfortunately those repos are private repos and I am unable to share a example repo but when I tried with the version version 1.0.10 it worked |
I have this on v2 also, but only when I run on a "larger runner". On standard github hosted runners v2 works fine for me. I don't know if this is because the runners are behaving differently (possibly one is running the container as root by default?) or because of an artifact on the runner. Looks like |
I'm seeing the same problem on self hosted runner. The volume mount config is the following:
I've made the Any suggestions how to bypass it on the self hosted runner? |
Same issue for me as well on a self hosted runner. |
Used old version and it worked for me or you can manually run those terragrunt commands except using the action |
Can you please be more specific, what tag/version are you referring to when you say |
I have tried on v1.0.9 and v1.0.8 |
Add diff --git a/Dockerfile b/Dockerfile
index 76c2023..7ccc2ce 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,4 +4,6 @@ MAINTAINER Gruntwork <[email protected]>
COPY ["./src/main.sh", "/action/main.sh"]
+USER root
+
ENTRYPOINT ["/action/main.sh"]
|
Hey folks, thank you for your work. Why is this closed? The issue still persists and above workaround is not a solution |
I got it fixed but forgot to publish the solution here. In my case it was about the fact that runner agent is being executed under Every execution was re-setting the permissions for the I had the following command insider the workflow: - name: Job_name
run: |
docker run --rm -t -v ./:/app -w /app \
.... \
-u 1000 \
docker_image:image_tag command The fix was about adding Additionally I've added the workspace cleanup stage: cleanup:
runs-on: [runner_lable]
needs: [Job_name]
steps:
- name: cleanup
run: |
sudo rm -rf ${{ github.workspace }}/* |
Describe the bug
giving following error
/github/home/.gitconfig: Permission denied
To Reproduce
With the version v2.0 any Terragrunt command will give the error
Expected behavior
A clear and concise description of what you expected to happen.
Nice to have
2023-11-27 18:41:20 Starting Terragrunt Action
error: could not lock config file /github/home/.gitconfig: Permission denied
2023-11-27 18:41:20 Finished Terragrunt Action execution
Pipeline steps
Versions
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: