fork-sync
fork-sync copied to clipboard
Failed to create or merge pull request: HttpError: Resource not accessible by integration
https://github.com/NimaQu/BiliExp/runs/2199469267
I've tried looking into it. When the pull request contains changes to the workflow file, the merge will be blocked( this post: https://github.community/t/github-action-resource-not-accessible-by-integration/16034/3), so maybe we need to use the personal access token to perform the merge?
right, that should help
Thanks for the reply, I made a patch and it works now: https://github.com/NimaQu/fork-sync/commit/9c28dd7cf88b901c0537ffc0b8e609ea7a8914d8
But there is a small problem, I did not configure autoApprove, but it still performs this function
https://github.com/NimaQu/BiliExp/pull/7
https://github.com/NimaQu/BiliExp/blob/master/.github/workflows/sync_fork.yml
I haven't used typescript, I just copied and modified it, can you help me to check where the error is?
I don't know how this happened. But I tried to make personal access tokens work on this repo in version 1.4.
Try adding follows into job lable? Maybe it works:
permissions:
actions: write
contents: write
This means add permissions for ${{ secret.GITHUB_TOKEN }}.
There's also a configuration in settings/actions that you need to set to allow actions to create pull requests