File tree 5 files changed +26
-5
lines changed
5 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 7
7
- main # change this if your default branch is named differently
8
8
workflow_dispatch :
9
9
10
+ permissions : {}
11
+
10
12
jobs :
11
13
analyze :
12
14
runs-on : ubuntu-latest
23
25
- name : Restore cached node_modules
24
26
uses : actions/cache@v4
25
27
with :
26
- path : " **/node_modules"
28
+ path : ' **/node_modules'
27
29
key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
28
30
29
31
- name : Install deps
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ name: Analyze Bundle (Comment)
2
2
3
3
on :
4
4
workflow_run :
5
- workflows : [" Analyze Bundle" ]
5
+ workflows : [' Analyze Bundle' ]
6
6
types :
7
7
- completed
8
8
9
+ permissions : {}
10
+
9
11
jobs :
10
12
comment :
11
13
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
1
name : Discord Notify
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
5
types : [opened, ready_for_review]
6
6
7
+ permissions : {}
8
+
7
9
jobs :
8
10
check_maintainer :
9
11
uses : facebook/react/.github/workflows/shared_check_maintainer.yml@main
12
+ permissions :
13
+ # Used by check_maintainer
14
+ contents : read
10
15
with :
11
16
actor : ${{ github.event.pull_request.user.login }}
12
17
is_remote : true
Original file line number Diff line number Diff line change 1
1
name : Label Core Team PRs
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
+
6
+ permissions : {}
5
7
6
8
env :
7
9
TZ : /usr/share/zoneinfo/America/Los_Angeles
11
13
jobs :
12
14
check_maintainer :
13
15
uses : facebook/react/.github/workflows/shared_check_maintainer.yml@main
16
+ permissions :
17
+ # Used by check_maintainer
18
+ contents : read
14
19
with :
15
20
actor : ${{ github.event.pull_request.user.login }}
16
21
is_remote : true
19
24
if : ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
20
25
runs-on : ubuntu-latest
21
26
needs : check_maintainer
27
+ permissions :
28
+ # Used to add labels on issues
29
+ issues : write
30
+ # Used to add labels on PRs
31
+ pull-requests : write
22
32
steps :
23
33
- name : Label PR as React Core Team
24
34
uses : actions/github-script@v7
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
types : [opened, synchronize, reopened]
9
9
10
+ permissions : {}
11
+
10
12
jobs :
11
13
lint :
12
14
runs-on : ubuntu-latest
25
27
- name : Restore cached node_modules
26
28
uses : actions/cache@v4
27
29
with :
28
- path : " **/node_modules"
30
+ path : ' **/node_modules'
29
31
key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
30
32
31
33
- name : Install deps
You can’t perform that action at this time.
0 commit comments