- Create a GitHub App with:
- Read/write pull requests
- Read/write contents
- Read-only metadata
- Read-only checks
- Webhooks for
check_run,check_suite,pull_request,push,installation, andinstallation_repositories
- Generate a private key and store it on the host.
- Install the app into the repositories you want to automate.
- Set these environment variables in
.env:GITHUB_APP_IDGITHUB_APP_PRIVATE_KEY_PATHGITHUB_WEBHOOK_SECRET
- Point the GitHub App webhook URL to
POST /api/v1/webhooks/github.