File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 2727 steps :
2828 - uses : actions/checkout@v4
2929 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
3334 submodules : recursive
3435 - name : Setup Python
3536 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 2727 steps :
2828 - uses : actions/checkout@v4
2929 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
3334 submodules : recursive
3435 - name : Setup Python
3536 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 2727 steps :
2828 - uses : actions/checkout@v4
2929 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
3334 submodules : recursive
3435 - name : Setup Python
3536 uses : actions/setup-python@v5
You can’t perform that action at this time.
0 commit comments