Commit b1f0509
committed
fix(agent): run gh attribution/whoami as the current actor
fetchPrAttribution and fetchGhLogin called gh with no env, inheriting the
process env — the actor's token frozen at launch. After a mid-session actor
transition that reports the wrong identity, and once the backend stops baking
the token into the process env these calls would run unauthenticated. Resolve
the live sandbox token (same file-first path as the signed-commit tools) and
pass it explicitly; fall back to the process env only when unmanaged.1 parent fbfffb6 commit b1f0509
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
3786 | 3788 | | |
3787 | 3789 | | |
3788 | 3790 | | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
3789 | 3800 | | |
3790 | 3801 | | |
3791 | 3802 | | |
| |||
3794 | 3805 | | |
3795 | 3806 | | |
3796 | 3807 | | |
| 3808 | + | |
3797 | 3809 | | |
3798 | 3810 | | |
3799 | 3811 | | |
| |||
3817 | 3829 | | |
3818 | 3830 | | |
3819 | 3831 | | |
| 3832 | + | |
3820 | 3833 | | |
3821 | 3834 | | |
3822 | 3835 | | |
| |||
0 commit comments