Composer ≤ 2.9.7 / ≤ 2.2.27 / ≤ 1.10.27 interpolates GitHub Actions tokens
verbatim into stderr when validating new-format tokens containing hyphens,
exposing the full GITHUB_TOKEN / App installation token in job logs.
This repo runs Composer via shivammathur/setup-php@v2 (no pinned tools: composer:X.Y.Z) in:
.github/workflows/lint.yml
.github/workflows/pr-validation.yml
Action items
Optional hardening
Pin a minimum Composer version explicitly:
- uses: shivammathur/setup-php@v2
with:
tools: composer:^2.9.8
Composer ≤ 2.9.7 / ≤ 2.2.27 / ≤ 1.10.27 interpolates GitHub Actions tokens
verbatim into stderr when validating new-format tokens containing hyphens,
exposing the full
GITHUB_TOKEN/ App installation token in job logs.This repo runs Composer via
shivammathur/setup-php@v2(no pinnedtools: composer:X.Y.Z) in:.github/workflows/lint.yml.github/workflows/pr-validation.ymlAction items
setup-php@v2pulls the latest stable Composer on each run, so the next CI run picks up 2.9.8 automatically.ghs_,gho_,ghu_,github_pat_). TTL: ≤ 6h on GitHub-hosted runners, ≤ 24h on self-hosted.Optional hardening
Pin a minimum Composer version explicitly: