Commit cc0bb65
committed
ci: support per-user PAT for staging PR authorship
The staging PR opened by github-actions-on-label-create.yml is currently
authored by the bot account behind STAGING_GITHUB_TOKEN, hiding the real
contributor on the staging side. Add a token-resolution step that, when
the PR author has stored a personal access token as repository secret
PAT_<LOGIN> (uppercase, '-' -> '_'), uses it to call the PR-creation API
so the staging PR is authored by them. Falls back to the bot token when
no per-user PAT is configured, preserving today's behavior.
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>1 parent cabb23d commit cc0bb65
1 file changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
54 | 80 | | |
55 | 81 | | |
56 | 82 | | |
57 | 83 | | |
58 | | - | |
| 84 | + | |
59 | 85 | | |
60 | 86 | | |
61 | 87 | | |
| |||
0 commit comments