Commit ee20e61
Add GitHub credentials to Sandbox (#1487)
* Document gh auth token pattern in opencode_server example
Add guidance for using shell command substitution with $(gh auth token)
to pass GitHub credentials when launching the sandbox, enabling access
to private repositories without manually creating a PAT.
Co-authored-by: Modal Jazz <modal-jazz@modal.com>
* update formatting, adjust prose
* Pass GH_TOKEN to sandbox via Modal Secret
Allows authenticated gh commands inside the sandbox, not just repo cloning.
* Apply suggestion from @charlesfrye
---------
Co-authored-by: opencode <opencode@test.com>
Co-authored-by: Modal Jazz <modal-jazz@modal.com>
Co-authored-by: OpenCode <opencode@modal.com>1 parent 5fe215c commit ee20e61
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
| |||
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
| |||
267 | 278 | | |
268 | 279 | | |
269 | 280 | | |
270 | | - | |
| 281 | + | |
271 | 282 | | |
272 | 283 | | |
273 | 284 | | |
| |||
0 commit comments