Make WordPress Core

Changeset 60773


Ignore:
Timestamp:
09/17/2025 02:55:12 AM (5 months ago)
Author:
desrosj
Message:

Build/Test Tools: Add some missing permissions to the GitHub Actions workflows.

These permissions are not required for a public repo but are required for a private repo, for example a private fork.

Merges [60612], [60624] to the 6.8 branch.

Props johnbillion, desrosj.
See #63170

Location:
branches/6.8
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/.github/workflows/check-built-files.yml

    r60092 r60773  
    4545    if: ${{ github.repository == 'wordpress/wordpress-develop' && ( github.actor != 'dependabot[bot]' || github.event.commits < 2 ) }}
    4646    uses: WordPress/wordpress-develop/.github/workflows/reusable-check-built-files.yml@trunk
     47    permissions:
     48      contents: read
  • branches/6.8/.github/workflows/performance.yml

    r60092 r60773  
    5353    runs-on: ubuntu-24.04
    5454    if: ${{ ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) && ! contains( github.event.before, '00000000' ) }}
    55     permissions: {}
     55    permissions:
     56      actions: read
    5657    env:
    5758      TARGET_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
  • branches/6.8/.github/workflows/upgrade-develop-testing.yml

    r60092 r60773  
    5757    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    5858    needs: [ build ]
     59    permissions:
     60      contents: read
    5961    strategy:
    6062      fail-fast: false
Note: See TracChangeset for help on using the changeset viewer.