Skip to content

ci: pin composer to 2.9.8 to avoid GitHub Actions token disclosure#7974

Open
soyuka wants to merge 1 commit into
api-platform:4.3from
soyuka:ci/pin-composer-2.9.8
Open

ci: pin composer to 2.9.8 to avoid GitHub Actions token disclosure#7974
soyuka wants to merge 1 commit into
api-platform:4.3from
soyuka:ci/pin-composer-2.9.8

Conversation

@soyuka
Copy link
Copy Markdown
Member

@soyuka soyuka commented May 14, 2026

Q A
Branch? 4.3
Tickets -
License MIT
Doc PR

Composer 2.9.7 and earlier interpolate the value of COMPOSER_TOKEN into exception messages when rejecting the new GitHub token format, leaking the secret to CI logs. Every setup-php step in ci.yml and guides.yml now pins composer:2.9.8 so the patched binary is guaranteed regardless of runner cache state.

See https://blog.packagist.com/composer-2-9-8-and-2-2-28-fix-github-actions-token-disclosure-in-error-messages/

Composer 2.9.7 and earlier interpolate the value of COMPOSER_TOKEN
into exception messages when rejecting the new GitHub token format,
leaking the secret to CI logs.

See https://blog.packagist.com/composer-2-9-8-and-2-2-28-fix-github-actions-token-disclosure-in-error-messages/
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