Skip to content

Commit 8088ea5

Browse files
committed
[ci] Add missing permissions
Missed these ones earlier.
1 parent daee085 commit 8088ea5

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.github/workflows/compiler_discord_notify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
2020
needs: check_maintainer
2121
runs-on: ubuntu-latest
22+
permissions:
23+
# Used by check_maintainer
24+
contents: read
2225
steps:
2326
- name: Discord Webhook Action
2427
uses: tsickert/discord-webhook@86dc739f3f165f16dadc5666051c367efa1692f4

.github/workflows/runtime_discord_notify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
2020
needs: check_maintainer
2121
runs-on: ubuntu-latest
22+
permissions:
23+
# Used by check_maintainer
24+
contents: read
2225
steps:
2326
- name: Discord Webhook Action
2427
uses: tsickert/discord-webhook@86dc739f3f165f16dadc5666051c367efa1692f4

.github/workflows/shared_close_direct_sync_branch_prs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ env:
1515
jobs:
1616
close_pr:
1717
runs-on: ubuntu-latest
18+
permissions:
19+
# Used to create a review and close PRs
20+
pull-requests: write
1821
steps:
1922
- name: Close PR
2023
uses: actions/github-script@v7

.github/workflows/shared_label_core_team_prs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
2121
runs-on: ubuntu-latest
2222
needs: check_maintainer
23+
permissions:
24+
# Used by check_maintainer
25+
contents: read
26+
# Used to add labels
27+
issues: write
2328
steps:
2429
- name: Label PR as React Core Team
2530
uses: actions/github-script@v7

0 commit comments

Comments
 (0)