Make WordPress Core

Changeset 60612


Ignore:
Timestamp:
08/06/2025 06:42:38 PM (4 weeks ago)
Author:
johnbillion
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.

Props johnbillion, desrosj

See #63170

Location:
trunk/.github/workflows
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/performance.yml

    r60080 r60612  
    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 }}
  • trunk/.github/workflows/reusable-check-built-files.yml

    r60086 r60612  
    3434    runs-on: ubuntu-24.04
    3535    timeout-minutes: 10
     36    permissions:
     37      contents: read
    3638    steps:
    3739      - name: Checkout repository
  • trunk/.github/workflows/reusable-phpunit-tests-v3.yml

    r60083 r60612  
    122122    runs-on: ${{ inputs.os }}
    123123    timeout-minutes: ${{ inputs.coverage-report && 120 || inputs.php == '8.4' && 30 || 20 }}
     124    permissions:
     125      contents: read
    124126
    125127    steps:
Note: See TracChangeset for help on using the changeset viewer.