1515name : Test Runner CI
1616on :
1717 merge_group : null
18- pull_request :
18+ pull_request_target :
19+ types : [opened, edited, reopened, synchronize]
20+ branches : [main]
1921 paths :
2022 - ' test-runner/**'
2123 push :
3840 with :
3941 egress-policy : audit
4042 - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
43+ if : ${{ github.event_name == 'push' }}
44+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
45+ if : ${{ github.event_name == 'pull_request_target' }}
46+ with :
47+ fetch-depth : 0
48+ ref : " refs/pull/${{ github.event.number }}/merge"
49+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
50+ if : ${{ github.event_name == 'merge_group' }}
51+ with :
52+ fetch-depth : 0
53+ ref : ${{ github.event.merge_group.head_ref }}
4154 - uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
4255 with :
4356 driver : docker
7184 with :
7285 egress-policy : audit
7386 - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
87+ if : ${{ github.event_name == 'push' }}
88+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
89+ if : ${{ github.event_name == 'pull_request_target' }}
7490 with :
91+ fetch-depth : 0
7592 ref : " refs/pull/${{ github.event.number }}/merge"
93+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
94+ if : ${{ github.event_name == 'merge_group' }}
95+ with :
96+ fetch-depth : 0
97+ ref : ${{ github.event.merge_group.head_ref }}
7698 - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
7799 with :
78100 python-version : " 3.10"
@@ -99,6 +121,17 @@ jobs:
99121 with :
100122 egress-policy : audit
101123 - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
124+ if : ${{ github.event_name == 'push' }}
125+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
126+ if : ${{ github.event_name == 'pull_request_target' }}
127+ with :
128+ fetch-depth : 0
129+ ref : " refs/pull/${{ github.event.number }}/merge"
130+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
131+ if : ${{ github.event_name == 'merge_group' }}
132+ with :
133+ fetch-depth : 0
134+ ref : ${{ github.event.merge_group.head_ref }}
102135 - uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
103136 with :
104137 driver : docker
0 commit comments