-
-
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
[Bug]: could not open '.git/COMMIT_EDITMSG': Permission denied
#484
Comments
This work around AndreasAugustin/actions-template-sync#484
Hi @kdeldycke and thanks for the bug. Will have a look into it. A first guess: owner of the file is the user within the docker container (root) different to the user running on the host (most likely ubuntu). I made a simple test Run ls -la .git/
ls -la .git/
shell: /usr/bin/bash -e {0}
total 68
drwxr-xr-x 9 runner docker 4096 Mar 5 [2](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:2)1:11 .
drwxr-xr-x 5 runner docker 4096 Mar 5 21:11 ..
-rw-r--r-- 1 root root 105 Mar 5 21:11 COMMIT_EDITMSG
-rw-r--r-- 1 runner docker 86 Mar 5 21:11 FETCH_HEAD
-rw-r--r-- 1 root root 44 Mar 5 21:11 HEAD
-rw-r--r-- 1 root root 41 Mar 5 21:11 ORIG_HEAD
drwxr-xr-x 2 runner docker 4096 Mar 5 21:11 branches
-rw-r--r-- 1 root root 560 Mar 5 21:11 config
-rwxr-xr-x 1 runner docker 7[3](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:3) Mar 5 21:11 description
drwxr-xr-x 2 runner docker [4](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:5)096 Mar [5](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:6) 21:11 hooks
-rw-r--r-- 1 root root 2901 Mar 5 21:11 index
drwxr-xr-x 2 runner docker 409[6](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:7) Mar 5 21:11 info
drwxr-xr-x 4 root root 40[9](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:10)6 Mar 5 21:[11](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:12) lfs
drwxr-xr-x 3 runner docker 4096 Mar 5 21:11 logs
drwxr-xr-x 40 runner docker 4096 Mar 5 21:11 objects
drwxr-xr-x 5 runner docker 4096 Mar 5 21:11 refs
-rw-r--r-- 1 runner docker 41 Mar 5 [21](https://github.com/AndreasAugustin/gpg-test/actions/runs/8163057306/job/22315422609#step:7:22):11 shallow We see that the others only have read permissions on Need to think about a solution.
|
Remark: |
@kdeldycke with |
Again, I can confirm I am not encountering this issue. Thanks @AndreasAugustin ! |
Is there an existing issue for this?
Describe the bug
Re-checking out the PR created by
actions-template-sync
works but doesn't allow for pushing back to the PR because of permission issues.Expected Behavior
I'm surprised there is an issue with file permissions as I am not messing anytime with users on the file system. Is this an edge-case that's introduced by
actions-template-sync
?Current Behavior
The following workflow:
Ends up with this error at the
create-pull-request
step:See the source of the workflow run at: https://github.com/kdeldycke/awesome-billing/actions/runs/8130308519/job/22218375401#step:10:71
Steps To Reproduce
No response
Possible Solution
No response
Additional Information/Context
No response
Template sync version Version
1.8.1
The text was updated successfully, but these errors were encountered: