Unable to create pull request from a workflow with GITHUB_TOKEN
I'm guessing this will be similar to #5588 (comment 2961092) .
There is a workflow created at https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/.github/workflows/updateTarget.yml that handles automatically creating a pull request that can update target files. I'm currently using it with secrets.GITHUB_TOKEN
for the authentication. On a personal fork it requires that I set the workflow permissions to Read and write permissions
, as well as setting Allow Github Actions to create and approve pull requests
https://github.com/eclipse-jdtls/eclipse.jdt.ls/blob/master/.github/workflows/updateTarget.yml
It fails on eclipse-jdtls/eclipse.jdtls, https://github.com/eclipse-jdtls/eclipse.jdt.ls/actions/runs/13385830805 with :
Pushing pull request branch to 'origin/update_target'
/usr/bin/git push --force-with-lease origin update_target:refs/heads/update_target
remote: Permission to eclipse-jdtls/eclipse.jdt.ls.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/eclipse-jdtls/eclipse.jdt.ls/': The requested URL returned error: 403
Error: The process '/usr/bin/git' failed with exit code 128
I have also tried to rename the bot based on https://api.eclipse.org/bots/ (eclipse-ls-bot ls-bot@eclipse.org) but it fails in the same way.