File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1212 steps :
1313 - uses : actions/checkout@v4
1414 with :
15- ref : ${{ github.event.pull_request.head.sha }}
15+ # On PR_TARGET → the fork (or same repo) that opened the PR.
16+ # On push → falls back to the current repository.
17+ repository : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
18+
19+ # On PR_TARGET → the PR head *commit* (reproducible).
20+ # On push → the pushed commit that triggered the workflow.
21+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
22+
23+ fetch-depth : 0
24+ # Don’t keep credentials when running untrusted PR code under PR_TARGET.
25+ persist-credentials : ${{ github.event_name != 'pull_request_target' }}
1626
1727 - uses : 1arp/create-a-file-action@0.4.5
1828 env :
You can’t perform that action at this time.
0 commit comments