Commit b8e66b0 1 parent f57d64f commit b8e66b0 Copy full SHA for b8e66b0
File tree 3 files changed +12
-9
lines changed
3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 27
27
steps :
28
28
- uses : actions/checkout@v4
29
29
with :
30
- repository : ${{ github.event.repository.full_name }} # Uses the full repository name
31
- ref : ${{ github.ref }} # Uses the ref from the event
32
- token : ${{ secrets.GITHUB_TOKEN }} # Automatically provided token
30
+ # pull_request_target runs the workflow in the context of the base repo
31
+ # as such actions/checkout needs to be explicit configured to retrieve
32
+ # code from the PR.
33
+ ref : refs/pull/${{ github.event.pull_request.number }}/merge
33
34
submodules : recursive
34
35
- name : Setup Python
35
36
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 27
27
steps :
28
28
- uses : actions/checkout@v4
29
29
with :
30
- repository : ${{ github.event.repository.full_name }} # Uses the full repository name
31
- ref : ${{ github.ref }} # Uses the ref from the event
32
- token : ${{ secrets.GITHUB_TOKEN }} # Automatically provided token
30
+ # pull_request_target runs the workflow in the context of the base repo
31
+ # as such actions/checkout needs to be explicit configured to retrieve
32
+ # code from the PR.
33
+ ref : refs/pull/${{ github.event.pull_request.number }}/merge
33
34
submodules : recursive
34
35
- name : Setup Python
35
36
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 27
27
steps :
28
28
- uses : actions/checkout@v4
29
29
with :
30
- repository : ${{ github.event.repository.full_name }} # Uses the full repository name
31
- ref : ${{ github.ref }} # Uses the ref from the event
32
- token : ${{ secrets.GITHUB_TOKEN }} # Automatically provided token
30
+ # pull_request_target runs the workflow in the context of the base repo
31
+ # as such actions/checkout needs to be explicit configured to retrieve
32
+ # code from the PR.
33
+ ref : refs/pull/${{ github.event.pull_request.number }}/merge
33
34
submodules : recursive
34
35
- name : Setup Python
35
36
uses : actions/setup-python@v5
You can’t perform that action at this time.
0 commit comments