Skip to content

Use repository paths for GitHub API credentials - #363

Open
longlho wants to merge 1 commit into
google:masterfrom
longlho:fix/repository-api-credentials
Open

longlho wants to merge 1 commit into
google:masterfrom
longlho:fix/repository-api-credentials

Conversation

@longlho

@longlho longlho commented Nov 18, 2026 •

Copy link
Copy Markdown

REST and GraphQL clients receive a repository name but look up credentials by host only. This breaks setups using credential.useHttpPath=true with separate tokens for source and destination repositories.

Include the repository path in both clients’ credential lookups. Preserve API-host preference and the caller’s Git configuration; host-wide credentials still work.

Adds a regression checking the actual Authorization header for both APIs across source/destination/source calls. Native credential, GitHub PR origin, and GitHub PR destination suites pass.

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.

1 participant