Skip to content
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

Failed to create or merge pull request: HttpError: Resource not accessible by integration #38

Open
NimaQu opened this issue Mar 26, 2021 · 6 comments

Comments

@NimaQu
Copy link

NimaQu commented Mar 26, 2021

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?

@tgymnich
Copy link
Owner

right, that should help

@NimaQu
Copy link
Author

NimaQu commented Mar 26, 2021

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

NimaQu/BiliExp#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?

@tgymnich
Copy link
Owner

tgymnich commented Mar 26, 2021

I don't know how this happened. But I tried to make personal access tokens work on this repo in version 1.4.

@Curious-r
Copy link

Try adding follows into job lable? Maybe it works:

permissions:
      actions: write
      contents: write

This means add permissions for ${{ secret.GITHUB_TOKEN }}.

@emilgoldsmith
Copy link
Contributor

There's also a configuration in settings/actions that you need to set to allow actions to create pull requests

@taozhiyu
Copy link

Might cause of security setting

image

Mine works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants