-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Unable to unlink - Permission denied #783
Comments
Seems like it could be a file permission error? https://stackoverflow.com/questions/11774397/git-push-error-unable-to-unlink-old-permission-denied/26950991 Do I maybe have to run a CHMOD between the checkout and the Pull Request steps? I am on windows but I use a WSL2 Linux sub-system to do most development. So I could be an edge case and why the other examples don't have these problems? |
Hi @NickStees It looks like a file or directory permission issue, but I've not seen this before. I think it's unrelated to the action itself and probably something that would also be reproducible if the repository was checked out locally. My advice would be to reproduce it locally and then try some of the suggestions in that Stackoverflow question. You might need to commit file/directory permission changes back to the repository to fix it. You could also try using a windows runner on the off-chance that makes a difference.
|
I'm getting a similar error. I'm following this example: https://github.com/lilt/lilt-java/blob/master/.github/workflows/openapi.yml |
@orozcoadrian It sounds like a different issue to me. Please could you make a new issue and provide more details such as the exact workflow you are running and ideally a link to actions log if it's a public repository. |
I'm having a similar issue, my workflow just unzips a folder and tries to commit the unzipped files to the main
|
@ougni It looks like a permissions issue with one or more of your repository directories. See this answer: https://stackoverflow.com/questions/11774397/git-push-error-unable-to-unlink-old-permission-denied/26950991 Try running |
I had this problem recently and adding |
Had this issue as well. In our scenario, we were downloading strings.xml files from a translations service. For the files that already existed and were only being modified, there were no issues. However, there were some new files that were added that were contained in completely new folders that previously did not exist. I'm no expert, but after several attempts, my suspicion was that those newly created folders, did not inherit any of the permissions that existing folders would have. If we added those files (blank) so that they already existed before running there worker, there were no issues. (But we didn't want to have to pre-emptively add a bunch of empty files).
|
Generating the SDK is failing, due to [permissions errors on generated files](https://github.com/istreamlabs/go-sdk/actions/runs/9504248321). Seems to be peter-evans/create-pull-request#783.
Subject of the issue
I am trying to automate composer updates, using a scheduled action to run 'Composer updates' and then open a new pull request from master for review. But I always get some permission denied errors.
Steps to reproduce
The text was updated successfully, but these errors were encountered: