We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e698a95 + cff0e34 commit 00d18c2Copy full SHA for 00d18c2
.github/workflows/e2e_tests.yaml
@@ -12,7 +12,17 @@ jobs:
12
steps:
13
- uses: actions/checkout@v4
14
with:
15
- ref: ${{ github.event.pull_request.head.sha }}
+ # 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' }}
26
27
- uses: 1arp/[email protected]
28
env:
0 commit comments