github-pr-resource icon indicating copy to clipboard operation
github-pr-resource copied to clipboard

Add support for authentication as a GitHub App

Open fatmcgav-depop opened this issue 3 years ago • 2 comments

This commit adds support for authentication as a GitHub App. This is beneficial in several ways, including:

  • Increased rate limits
  • Better separation of access
  • Finer grained control over access
  • Removes the need for a bot or service account

As part of these changes, have added the github.com/bradleyfalzon/ghinstallation/v2 module and it's associated dependencies.

Added several new configuration fields:

  • UseGitHubApp - Boolean flag signalling if user wants to auth as a GitHub App
  • PrivateKey - PEM encoded private key
  • PrivateKeyFile - Filename for RSA Private Key generated for GitHub App
  • AppID - GitHub App application numerical identifier
  • InstallationID - GitHub App installation numerical identifier

N.B I'm currently working on documentation and integration testing, however I thought it would be useful to get early feedback...

fatmcgav-depop avatar Sep 27 '22 15:09 fatmcgav-depop

Any updates on when this can be merged? Would love to use Github App as an authentication to take advantage of the 15,000 requests per hour (rate limit).

duelyy avatar Oct 27 '23 20:10 duelyy