Skip to content

Avoid prompting for a GitHub token multiple times on parallel auth failures#12913

Merged
Seldaek merged 1 commit into
composer:mainfrom
akankov:fix/github-parallel-token-prompt
Jun 2, 2026
Merged

Avoid prompting for a GitHub token multiple times on parallel auth failures#12913
Seldaek merged 1 commit into
composer:mainfrom
akankov:fix/github-parallel-token-prompt

Conversation

@akankov
Copy link
Copy Markdown
Contributor

@akankov akankov commented Jun 2, 2026

Fixes #12905

On parallel GitHub 401/403s every failing request prompts for a token. The generic and
Bitbucket branches already guard against this, the GitHub one didn't. Added the same
hasAuthentication() && retryCount === 0 retry guard + a test.

@Seldaek Seldaek added this to the 2.10 milestone Jun 2, 2026
@Seldaek Seldaek merged commit 5de02c1 into composer:main Jun 2, 2026
21 of 22 checks passed
@Seldaek
Copy link
Copy Markdown
Member

Seldaek commented Jun 2, 2026

Thanks

@stof
Copy link
Copy Markdown
Contributor

stof commented Jun 3, 2026

I suggest fixing this also for the gitlab branch, that does not have this guard either.

@akankov akankov deleted the fix/github-parallel-token-prompt branch June 3, 2026 15:53
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.

Github token prompted multiple times per command run, only used after a restart

3 participants