Yusuke Hatanaka

May 16, 2024

TIL: necessary permission of to exec `gh pr merge' for GitHub App

When we want to merge pull-request while GitHub Action's workflow without PAT, then we may want to create a GitHub App and use its ephemeral token.
However, to find the correct pemission setting is very frustrated. Here is minimum permissions requirements to exec `gh pr merge`.

Contents: Read and write
Metadata: Read-only
Pull request: Read and write



About Yusuke Hatanaka

I'm working as a software engineer in Japan. I like reading, watching basketball game, and fishing. 
Not only the fact oriented but also intuition.