Commit 7f6617a
authored
PRs opened with the default GITHUB_TOKEN do not trigger downstream
pull_request workflows (an anti-recursion safeguard), which is why
backport PRs land without CI running on them. Read the github_token
from BACKPORT_PAT first and fall back to GITHUB_TOKEN, so configuring
a repo/org secret named BACKPORT_PAT (PAT with repo scope) unlocks
CI on backport PRs without any further code change. Behavior is
unchanged when the secret is not configured.
(cherry picked from commit 9d9db1d)
1 parent 4f007e3 commit 7f6617a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
0 commit comments