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
- Use https://github.com/mike-engel/jwt-cli to create a JWT from the command line
- Use jq to JSON manipulation