Skip to content

Configure Copilot agent setup for PHP 8.4 and authenticated Composer installs#160

Merged
lisachenko merged 6 commits into
masterfrom
copilot/setup-php8-4-version
Apr 19, 2026
Merged

Configure Copilot agent setup for PHP 8.4 and authenticated Composer installs#160
lisachenko merged 6 commits into
masterfrom
copilot/setup-php8-4-version

Conversation

Copilot AI commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Copilot sessions were running on PHP 8.3, which is incompatible with this codebase and causes analysis/test failures. This PR adds a dedicated Copilot setup workflow to pin PHP 8.4 and use authenticated Composer installs in Copilot runs.

  • Copilot environment bootstrap (new workflow)

    • Added .github/workflows/copilot-setup-steps.yml with required copilot-setup-steps job.
    • Configures the agent runtime to PHP 8.4 via shivammathur/setup-php@v2.
    • Uses authenticated setup token with fallback:
      • secrets.GH_PAT_TOKEN || github.token.
  • Dependency install configuration for Copilot sessions

    • Uses composer install --no-interaction --no-progress --prefer-dist in setup steps.
  • Agent guidance update

    • Updated CLAUDE.md to explicitly state PHP 8.4+ requirement for agent-run dependency/test validation in this repository context.
- name: Setup PHP 8.4
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.4'
    github-token: ${{ secrets.GH_PAT_TOKEN || github.token }}
    tools: composer:v2
    coverage: none
    ini-values: memory_limit=-1

- name: Install Composer dependencies
  run: composer install --no-interaction --no-progress --prefer-dist

Copilot AI changed the title [WIP] Configure PHP8.4 version for Copilot and authorization setup Configure Copilot agent setup for PHP 8.4 and authenticated Composer installs Apr 19, 2026
Copilot AI requested a review from lisachenko April 19, 2026 14:39
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
@lisachenko lisachenko marked this pull request as ready for review April 19, 2026 14:46
Copilot AI requested a review from lisachenko April 19, 2026 14:46
@lisachenko lisachenko merged commit 07f74b8 into master Apr 19, 2026
9 checks passed
@lisachenko lisachenko deleted the copilot/setup-php8-4-version branch April 19, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Setup PHP8.4 version for Copilot and authorization

2 participants