Skip to content

Commit f9e61f6

Browse files
committed
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 git-svn-id: https://develop.svn.wordpress.org/trunk@60612 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e225514 commit f9e61f6

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/performance.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
name: Determine Matrix
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 }}
5859
outputs:

.github/workflows/reusable-check-built-files.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
name: Check and update built files
3434
runs-on: ubuntu-24.04
3535
timeout-minutes: 10
36+
permissions:
37+
contents: read
3638
steps:
3739
- name: Checkout repository
3840
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/reusable-phpunit-tests-v3.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ jobs:
121121
name: ${{ inputs.phpunit-test-groups && format( '{0} / ', inputs.phpunit-test-groups ) || '' }}PHP ${{ inputs.php }} ${{ ! inputs.phpunit-test-groups && ! inputs.coverage-report && '/ ' || 'with ' }}${{ 'mariadb' == inputs.db-type && 'MariaDB' || 'MySQL' }} ${{ inputs.db-version }}${{ inputs.multisite && ' multisite' || '' }}${{ inputs.db-innovation && ' (innovation release)' || '' }}${{ inputs.memcached && ' with memcached' || '' }}${{ inputs.report && ' (test reporting enabled)' || '' }} ${{ 'example.org' != inputs.tests-domain && inputs.tests-domain || '' }}
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:
126128
- name: Configure environment variables

0 commit comments

Comments
 (0)