Skip to content

Commit 9565bce

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. Merges [60612], [60624] to the 6.8 branch. Props johnbillion, desrosj. See #63170 git-svn-id: https://develop.svn.wordpress.org/branches/6.8@60773 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7dc28be commit 9565bce

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ jobs:
4444
# This prevents an unnecessary second run after changes are committed back because Dependabot always rebases and force pushes.
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

.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/upgrade-develop-testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
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
6163
matrix:

0 commit comments

Comments
 (0)