Skip to content

Commit b54303c

Browse files
committed
Build/Test Tools: Fix the permissions that are granted to the Slack notifications workflow.
Follow-up to [55715]. See #57865 git-svn-id: https://develop.svn.wordpress.org/trunk@55717 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a67f9a0 commit b54303c

10 files changed

Lines changed: 30 additions & 0 deletions

.github/workflows/coding-standards.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ jobs:
172172
slack-notifications:
173173
name: Slack Notifications
174174
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
175+
permissions:
176+
actions: read
177+
contents: read
175178
needs: [ phpcs, jshint ]
176179
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
177180
with:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ jobs:
116116
slack-notifications:
117117
name: Slack Notifications
118118
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
119+
permissions:
120+
actions: read
121+
contents: read
119122
needs: [ e2e-tests ]
120123
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
121124
with:

.github/workflows/javascript-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ jobs:
8989
slack-notifications:
9090
name: Slack Notifications
9191
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
92+
permissions:
93+
actions: read
94+
contents: read
9295
needs: [ test-js ]
9396
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
9497
with:

.github/workflows/performance.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ jobs:
197197
slack-notifications:
198198
name: Slack Notifications
199199
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
200+
permissions:
201+
actions: read
202+
contents: read
200203
needs: [ performance ]
201204
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
202205
with:

.github/workflows/php-compatibility.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ jobs:
114114
slack-notifications:
115115
name: Slack Notifications
116116
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
117+
permissions:
118+
actions: read
119+
contents: read
117120
needs: [ php-compatibility ]
118121
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
119122
with:

.github/workflows/phpunit-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ jobs:
226226
slack-notifications:
227227
name: Slack Notifications
228228
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
229+
permissions:
230+
actions: read
231+
contents: read
229232
needs: [ test-php ]
230233
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
231234
with:

.github/workflows/test-and-zip-default-themes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ jobs:
147147
slack-notifications:
148148
name: Slack Notifications
149149
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
150+
permissions:
151+
actions: read
152+
contents: read
150153
needs: [ bundle-theme, test-build-scripts ]
151154
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
152155
with:

.github/workflows/test-coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ jobs:
175175
slack-notifications:
176176
name: Slack Notifications
177177
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
178+
permissions:
179+
actions: read
180+
contents: read
178181
needs: [ test-coverage-report ]
179182
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
180183
with:

.github/workflows/test-npm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ jobs:
174174
slack-notifications:
175175
name: Slack Notifications
176176
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
177+
permissions:
178+
actions: read
179+
contents: read
177180
needs: [ test-npm, test-npm-macos ]
178181
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
179182
with:

.github/workflows/test-old-branches.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ jobs:
9494
slack-notifications:
9595
name: Slack Notifications
9696
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
97+
permissions:
98+
actions: read
99+
contents: read
97100
needs: [ dispatch-workflows-for-old-branches ]
98101
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
99102
with:

0 commit comments

Comments
 (0)