Add GitHub Apps authentication as an alternative to personal access tokens - #59
Merged
Conversation
Allow the package to authenticate as a GitHub App installation instead of a personal access token. A signed RS256 JWT is exchanged for a short-lived installation access token, which is cached until shortly before it expires. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LaDzXAiGnyQ25uJ4aHYwZ3
Add GitHub App authentication support
…okup GitHub now surfaces the app's Client ID (not the numeric App ID) as the primary identifier on the app settings page. Rename github_app.id to github_app.client_id (and the matching env var/constructor param) to match, and expand the README with concrete steps for finding the installation ID for both personal and organization-owned apps. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LaDzXAiGnyQ25uJ4aHYwZ3
Rename GitHub App id config to client_id, document installation ID lookup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for authenticating with a GitHub App installation as an alternative to a personal access token (PAT). Many teams prefer GitHub Apps over PATs because they're scoped to specific repos/permissions, aren't tied to an individual user's account, and their tokens auto-expire — this brings that option to the package without changing
anything for existing PAT users.
What's new
Backward compatibility
Fully opt-in — token continues to work exactly as before for anyone not using github_app. No breaking changes to the public API or existing config.
Testing