Skip to content

Commit e869cb8

Browse files
committed
Disable permissions for all available scopes by default.
1 parent 32146c2 commit e869cb8

15 files changed

+73
-0
lines changed

.github/workflows/reusable-coding-standards-javascript.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
env:
1010
PUPPETEER_SKIP_DOWNLOAD: ${{ true }}
1111

12+
# Disable permissions for all available scopes by default.
13+
# Any needed permissions should be configured at the job level.
14+
permissions: {}
15+
1216
jobs:
1317
# Runs the JavaScript coding standards checks.
1418
#

.github/workflows/reusable-coding-standards-php.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
type: 'boolean'
1818
default: false
1919

20+
# Disable permissions for all available scopes by default.
21+
# Any needed permissions should be configured at the job level.
22+
permissions: {}
23+
2024
jobs:
2125
# Runs the PHP coding standards checks.
2226
#

.github/workflows/reusable-end-to-end-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ env:
3333
LOCAL_DIR: build
3434
LOCAL_PHP: ${{ inputs.php-version }}${{ 'latest' != inputs.php-version && '-fpm' || '' }}
3535

36+
# Disable permissions for all available scopes by default.
37+
# Any needed permissions should be configured at the job level.
38+
permissions: {}
39+
3640
jobs:
3741
# Runs the end-to-end test suite.
3842
#

.github/workflows/reusable-javascript-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ name: JavaScript tests
66
on:
77
workflow_call:
88

9+
# Disable permissions for all available scopes by default.
10+
# Any needed permissions should be configured at the job level.
11+
permissions: {}
12+
913
jobs:
1014
# Runs the QUnit test suite.
1115
#

.github/workflows/reusable-performance.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ env:
5454
LOCAL_PHP_MEMCACHED: ${{ inputs.memcached }}
5555
LOCAL_PHP: ${{ inputs.php-version }}${{ 'latest' != inputs.php-version && '-fpm' || '' }}
5656

57+
# Disable permissions for all available scopes by default.
58+
# Any needed permissions should be configured at the job level.
59+
permissions: {}
60+
5761
jobs:
5862
# Performs the following steps:
5963
# - Configure environment variables.

.github/workflows/reusable-php-compatibility.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
type: 'string'
1313
default: 'latest'
1414

15+
# Disable permissions for all available scopes by default.
16+
# Any needed permissions should be configured at the job level.
17+
permissions: {}
18+
1519
jobs:
1620
# Runs PHP compatibility tests.
1721
#

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ env:
5858
PUPPETEER_SKIP_DOWNLOAD: ${{ true }}
5959
SLOW_TESTS: 'external-http,media'
6060

61+
# Disable permissions for all available scopes by default.
62+
# Any needed permissions should be configured at the job level.
63+
permissions: {}
64+
6165
jobs:
6266
# Runs the PHPUnit tests for WordPress.
6367
#

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ env:
6363
PHPUNIT_SCRIPT: php
6464
SLOW_TESTS: 'external-http,media'
6565

66+
# Disable permissions for all available scopes by default.
67+
# Any needed permissions should be configured at the job level.
68+
permissions: {}
69+
6670
jobs:
6771
# Runs the PHPUnit tests for WordPress.
6872
#

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ env:
8282
PHPUNIT_CONFIG: ${{ inputs.phpunit-config }}
8383
PUPPETEER_SKIP_DOWNLOAD: ${{ true }}
8484

85+
# Disable permissions for all available scopes by default.
86+
# Any needed permissions should be configured at the job level.
87+
permissions: {}
88+
8589
jobs:
8690
# Runs the PHPUnit tests for WordPress.
8791
#

.github/workflows/reusable-support-json-reader-v1.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
description: "The MySQL versions to test for the given wp-version"
2727
value: ${{ jobs.mysql-versions.outputs.versions }}
2828

29+
# Disable permissions for all available scopes by default.
30+
# Any needed permissions should be configured at the job level.
31+
permissions: {}
32+
2933
jobs:
3034
# Determines the major version of WordPress being tested.
3135
#
@@ -36,6 +40,8 @@ jobs:
3640
# - Returns the major WordPress version as an output based on the value passed to the wp-version input.
3741
major-wp-version:
3842
name: Determine major WordPress version
43+
permissions:
44+
contents: read
3945
runs-on: ubuntu-latest
4046
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
4147
timeout-minutes: 5
@@ -70,6 +76,8 @@ jobs:
7076
# .version-support-php.json file and returning the values in that version's index.
7177
php-versions:
7278
name: Determine PHP versions
79+
permissions:
80+
contents: read
7381
runs-on: ubuntu-latest
7482
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
7583
needs: [ major-wp-version ]
@@ -105,6 +113,8 @@ jobs:
105113
# .version-support-mysql.json file and returning the values in that version's index.
106114
mysql-versions:
107115
name: Determine MySQL versions
116+
permissions:
117+
contents: read
108118
runs-on: ubuntu-latest
109119
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
110120
needs: [ major-wp-version ]

0 commit comments

Comments
 (0)