Skip to content

Conversation

@tangrufus
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings October 26, 2025 16:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the GitHub Actions workflows from typisttech/.github v2 to v3, consolidating and modernizing the CI/CD pipeline. The update replaces reusable workflow calls with direct action implementations, removes deprecated workflows, and improves the testing and code quality processes.

Key Changes:

  • Replaced reusable workflow references with inline action implementations for better transparency and control
  • Consolidated separate audit and formatting workflows (composer-audit/pint/composer-normalize) into unified lint, format, and audit workflows
  • Enhanced test workflow with improved coverage reporting and matrix strategy

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/test.yml Inlined php-matrix job, simplified dependency matrix, and improved codecov integration with explicit file targeting
.github/workflows/release-drafter.yml Replaced reusable workflow call with direct release-drafter action implementation
.github/workflows/pint.yml Removed (functionality consolidated into format.yml)
.github/workflows/lint.yml Added new workflow calling v3 lint-php reusable workflow
.github/workflows/format.yml Added new workflow calling v3 format-php reusable workflow
.github/workflows/dependabot-auto-merge.yml Updated to v3 of the reusable workflow and fixed permissions structure
.github/workflows/composer-normalize.yml Removed (functionality consolidated into format.yml)
.github/workflows/composer-audit.yml Removed (functionality consolidated into audit.yml)
.github/workflows/audit.yml Added new workflow calling v3 audit-php reusable workflow
.github/codecov.yml Removed path fix configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +39 to +40
php-version: ${{ fromJSON(needs.php-matrix.outputs.versions) }}
coverage: ['none']
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matrix no longer tests with 'lowest' dependency versions, only the versions specified in php-matrix. This reduces test coverage across different dependency combinations. Consider whether testing only with default/locked dependencies is sufficient, or if lowest dependency testing should be retained to catch compatibility issues.

Copilot uses AI. Check for mistakes.
- uses: codecov/codecov-action@v5
with:
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}
use_oidc: true
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting use_oidc: true unconditionally will fail for pull requests from forks, as they cannot use OIDC tokens. The original conditional logic ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} prevented this issue. This change will cause codecov uploads to fail for forked PRs.

Suggested change
use_oidc: true
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}

Copilot uses AI. Check for mistakes.
contents: write
pull-requests: read
steps:
- uses: release-drafter/release-drafter@v6

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Release Drafter' step
Uses Step
uses 'release-drafter/release-drafter' with ref 'v6', not a pinned commit hash
sparse-checkout: composer.json
sparse-checkout-cone-mode: false

- uses: typisttech/php-matrix-action@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium test

Unpinned 3rd party Action 'Test' step
Uses Step: php-matrix
uses 'typisttech/php-matrix-action' with ref 'v2', not a pinned commit hash
@tangrufus tangrufus merged commit 3bc8692 into main Oct 26, 2025
15 checks passed
@tangrufus tangrufus deleted the gha branch October 26, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants