Repository navigation
Commit 0d7968a
authored
fix: read the PR's REPOSITORIES.md via the API in drift detection (#33)
actions/checkout v4.4.0 refuses to check out fork pull request code in
pull_request_target workflows (BREAKING backport, actions/checkout#2502).
The sparse checkout of REPOSITORIES.md therefore fails for every fork PR,
detect-drift is red and the required status check blocks the merge.
Fetch only REPOSITORIES.md from the PR head through the contents API
instead; it is data and is never executed, so no fork code is checked
out.1 parent 091678c commit 0d7968a
1 file changed
Lines changed: 11 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
34 | 27 | | |
35 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
0 commit comments