-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
error: failed to delete github-pages-deploy-action-temp-deployment-folder: Permission denied #922
Comments
Can you provide your workflow yml? |
You probably need to provide the action with a personal access token with the required set of scoped permissions or an SSH key. This issue is likely stemming from a lack of permissions that the default GitHub token doesn't provide to organization accounts. If you take a look at the readme there's a section on the token parameter which should be able to help you. |
I'm also encountering this issue. An example run where this fails (https://github.com/autophagy/tid/runs/4193315329?check_suite_focus=true#step:5:47):
The workflow used for this run was https://github.com/autophagy/tid/actions/runs/1454300841/workflow For this particular run, I had given it a token that had all permissions a PAT could have. It creates and pushes the commit perfectly fine, it's just the step where it attempts to remove |
@autophagy In your case what happens when you remove the token parameter? I tried a PAT in a test repo of mine and it seems to have passed so I'm wondering if there's something else that could be causing these permission issues 🤔 Oddly enough it does seem that both workflows are using nix. It makes me wonder if something in that workflow step is altering the permissions of the git process. |
@JamesIves Without the token parameter, I got the same result: Yeah, it's possible that some nix-weirdness might be at play here, I wasn't able to reproduce it with a non-nix based build workflow. |
Oh, then it may be that nix put some folders in read-only mode, or bind mount some folders. I don't know enough of the internals of nix, I guess we would need to inspect the folder that can't be removed to see dhat's going on.
Le 15 novembre 2021 14:58:56 GMT+01:00, Mika ***@***.***> a écrit :
***@***.*** Without the token parameter, I got the same result: `error: failed to delete '/home/runner/work/tid/tid/github-pages-deploy-action-temp-deployment-folder': Permission denied`.
…
Yeah, it's possible that some nix-weirdness might be at play here, I wasn't able to reproduce it with a non-nix based build workflow.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#922 (comment)
|
I'll give this a shot tomorrow morning and see if I can replicate this bug. I have some ideas on how this can be resolved. |
Good morning; @autophagy & @tobiasBora, do you mind pointing your actions to |
This has been released as part of version |
@JamesIves Can confirm that this works for me now. Thank you a ton! ✨ |
Sorry, I had no time to check it before, but I confirm it works greatly, thanks a lot! |
Describe the bug
Once my website is pushed on the
gh-pages
branch, the script fails with:Reproduction Steps
I just tried to build my website using this workflow https://github.com/leo-colisson/website/runs/4154643484?check_suite_focus=true
Logs
The text was updated successfully, but these errors were encountered: