Make WordPress Core

Changeset 60052


Ignore:
Timestamp:
03/19/2025 12:30:39 PM (4 months ago)
Author:
desrosj
Message:

Build/Test Tools: Use ‘pull_request.head.ref` when checking built files.

Because pull_request_target happens in the context of the base branch, attempting to checkout github.head_ref results in a failure when the workflow comes from a fork.

This adjusts the options passed to actions/checkout to use the repository that actually contains the test branch.

See #62221.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-check-built-files.yml

    r60051 r60052  
    8484        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
    8585        with:
    86           ref: ${{ github.head_ref }}
     86          repository: ${{ github.event.pull_request.head.repo.full_name }}
     87          ref: ${{ github.event.pull_request.head.ref }}
    8788          show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
    8889          token: ${{ env.ACCESS_TOKEN }}
Note: See TracChangeset for help on using the changeset viewer.