Skip to content

Commit 18cc5db

Browse files
authored
feat: add GitHub Copilot support (#47)
1 parent 64a893a commit 18cc5db

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

sandboxes/base/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ RUN npm install -g \
7474
tar@7.5.11 \
7575
@hono/node-server@1.19.11 \
7676
opencode-ai@1.2.18 \
77-
@openai/codex@0.111.0
77+
@openai/codex@0.111.0 \
78+
@github/copilot@1.0.9
7879

7980
# GitHub CLI
8081
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \

sandboxes/base/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The foundational sandbox image that all other OpenShell Community sandbox images
99
| OS | Ubuntu 24.04 |
1010
| Languages | `python3` (3.13), `node` (22.22.1) |
1111
| Package managers | `npm` (11.11.0), `uv` (0.10.8), `pip` |
12-
| Coding agents | `claude`, `opencode`, `codex` |
12+
| Coding agents | `claude`, `opencode`, `codex`, `copilot` |
1313
| Developer | `gh`, `git`, `vim`, `nano` |
1414
| Networking | `ping`, `dig`, `nslookup`, `nc`, `traceroute`, `netstat`, `curl` |
1515

sandboxes/base/policy.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,16 @@ network_policies:
159159
- path: /usr/lib/node_modules/opencode-ai/bin/.opencode
160160
- path: /usr/bin/node
161161
- path: /usr/local/bin/opencode
162+
163+
copilot:
164+
name: copilot
165+
endpoints:
166+
- { host: github.com, port: 443 }
167+
- { host: api.github.com, port: 443 }
168+
- { host: api.githubcopilot.com, port: 443 }
169+
- { host: api.enterprise.githubcopilot.com, port: 443 }
170+
- { host: release-assets.githubusercontent.com, port: 443 }
171+
- { host: copilot-proxy.githubusercontent.com, port: 443 }
172+
- { host: default.exp-tas.com, port: 443 }
173+
binaries:
174+
- { path: /usr/lib/node_modules/@github/copilot/node_modules/@github/**/copilot }

0 commit comments

Comments
 (0)