Skip to content

feat: support GitHub App token authentication#14

Open
scottbrown wants to merge 1 commit into
mainfrom
claude/github-app-token-support-UjqHA
Open

feat: support GitHub App token authentication#14
scottbrown wants to merge 1 commit into
mainfrom
claude/github-app-token-support-UjqHA

Conversation

@scottbrown
Copy link
Copy Markdown
Owner

@scottbrown scottbrown commented Apr 5, 2026

Adds a second authentication mode alongside PATs. When GITHUB_APP_ID,
GITHUB_APP_PRIVATE_KEY (path to PEM file), and GITHUB_APP_INSTALLATION_ID
are all set, gitgrab builds a short-lived RS256 JWT, exchanges it for a
GitHub App installation access token, and uses that in place of GITHUB_TOKEN.
App credentials take precedence when both are present. No new dependencies
are required; JWT signing uses only the Go standard library.

Closes #13

Adds a second authentication mode alongside PATs. When GITHUB_APP_ID,
GITHUB_APP_PRIVATE_KEY (path to PEM file), and GITHUB_APP_INSTALLATION_ID
are all set, gitgrab builds a short-lived RS256 JWT, exchanges it for a
GitHub App installation access token, and uses that in place of GITHUB_TOKEN.
App credentials take precedence when both are present. No new dependencies
are required; JWT signing uses only the Go standard library.

Closes #13

https://claude.ai/code/session_01LFhvcNPAuc96uoZDENncQ9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support GitHub App token authentication

2 participants