Skip to content

feat(get-token): support multiple target repositories - #354

Merged
GuillaumeRx merged 4 commits into
mainfrom
gr/get-token-multi-target
Dec 2, 2026
Merged

GuillaumeRx merged 4 commits into
mainfrom
gr/get-token-multi-target

Conversation

@GuillaumeRx

@GuillaumeRx GuillaumeRx commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Current state

The get-token action passes target-repository as a single string (targetRepo) to /api/exchange/token, so callers needing access to multiple repositories under the same owner have to exchange separate tokens for each repository.

Solution

  • Split target-repository on commas and newlines in .github/actions/get-token/action.yml, trimming and deduplicating entries.
  • Pass targetRepo as an array of repository strings to /api/exchange/token.

@GuillaumeRx
GuillaumeRx force-pushed the gr/get-token-multi-target branch from f9a73b6 to f692c53 Compare December 1, 2026 14:38
@GuillaumeRx
GuillaumeRx marked this pull request as ready for review December 1, 2026 14:40
Comment thread .github/actions/get-token/action.yml Resolved
@GuillaumeRx
GuillaumeRx requested a review from Mrtenz December 1, 2026 15:09
Comment thread .github/actions/get-token/action.yml Resolved
@GuillaumeRx
GuillaumeRx requested a review from Mrtenz December 2, 2026 08:44
Comment thread .github/actions/get-token/action.yml Resolved
@GuillaumeRx
GuillaumeRx merged commit 9318e2e into main Dec 2, 2026
11 checks passed
@GuillaumeRx
GuillaumeRx deleted the gr/get-token-multi-target branch December 2, 2026 08:47
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.

2 participants