@kyanny's blog

My thoughts, my life. Views/opinions are my own.

How to call GitHub API from GitHub Apps

Authenticating with GitHub Apps - GitHub Docs

Prerequisites

  • Create a GitHub App
  • Install a GitHub App
  • Download the private key file of the GitHub App
  • Copy the GitHub App ID

In this scenario, Issues read-only permission is granted to the installed GitHub App.

Optional

  • Create a webhook receiver URL (smee.io is helpful)

Script

gist.github.com