Repository navigation
Commit 492dc60
authored
fix(runner-server): attach static GitHub PAT by configured origin, not scheme (#351)
* fix(runner-server): attach static PAT by configured GitHub origin, not scheme
The static GitHub PAT was attached to action-resolution and tarball
requests only when the outgoing URL started with `https://`. Pointing the
engine at a plain-http GitHub emulator (gh-simulate local mode) therefore
silently dropped the credential, and the anonymous API budget (60/hr) was
exhausted almost immediately.
Replace the scheme check with `url_targets_configured_github`, which
attaches the PAT when the request URL's host (and effective port) matches
one of the configured `github_urls` endpoints, regardless of scheme. Real
github.com still attaches over https; an unrelated host never receives
the credential.
Refs #349
* ci: rerun checks after shared engine recovery
The previous check run used the broken macstudio golden/provisioning state.
No source files changed.
* fix(ci): re-pin dtolnay/rust-toolchain in control-plane.yml
The pinned SHA (6bed0761) is not a commit in dtolnay/rust-toolchain;
zizmor flags it as impostor-commit. Re-pin to the real stable head
89b12181 (same pin ci.yml uses).
---------
Co-authored-by: Bnjoroge1 <Bnjoroge1@users.noreply.github.com>1 parent bc4e1f1 commit 492dc60
1 file changed
Lines changed: 66 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
170 | 194 | | |
171 | 195 | | |
172 | 196 | | |
| |||
198 | 222 | | |
199 | 223 | | |
200 | 224 | | |
201 | | - | |
| 225 | + | |
202 | 226 | | |
203 | 227 | | |
204 | 228 | | |
| |||
365 | 389 | | |
366 | 390 | | |
367 | 391 | | |
368 | | - | |
| 392 | + | |
369 | 393 | | |
370 | 394 | | |
371 | 395 | | |
| |||
766 | 790 | | |
767 | 791 | | |
768 | 792 | | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
769 | 833 | | |
770 | 834 | | |
771 | 835 | | |
| |||
0 commit comments