Skip to content

Commit 7a44ebf

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

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.github/workflows/compiler_discord_notify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ permissions: {}
1212
jobs:
1313
check_maintainer:
1414
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
15+
permissions:
16+
# Used by check_maintainer
17+
contents: read
1518
with:
1619
actor: ${{ github.event.pull_request.user.login }}
1720

.github/workflows/runtime_discord_notify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ permissions: {}
1212
jobs:
1313
check_maintainer:
1414
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
15+
permissions:
16+
# Used by check_maintainer
17+
contents: read
1518
with:
1619
actor: ${{ github.event.pull_request.user.login }}
1720

.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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@ env:
1313
jobs:
1414
check_maintainer:
1515
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
16+
permissions:
17+
# Used by check_maintainer
18+
contents: read
1619
with:
1720
actor: ${{ github.event.pull_request.user.login }}
1821

1922
label:
2023
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
2124
runs-on: ubuntu-latest
2225
needs: check_maintainer
26+
permissions:
27+
# Used to add labels
28+
issues: write
2329
steps:
2430
- name: Label PR as React Core Team
2531
uses: actions/github-script@v7

0 commit comments

Comments
 (0)