sha256:e181b62f87fd1c008465376c0e45a6f07ad72da49f69a3aedf22505ae1e096e0
Last pushed
25 days by dockerpublicbot
Type
Sandbox Kit
Manifest digest
sha256:e181b62f87fd1c008465376c0e45a6f07ad72da49f69a3aedf22505ae1e096e0
schemaVersion: "2"
kind: sandbox
name: copilot
version: 1.0.0
displayName: GitHub Copilot
description: GitHub Copilot CLI, GitHub's agentic coding CLI.
sandbox:
image: docker.io/sbx/copilot-image:latest
entrypoint:
- copilot
command:
default:
- --yolo
interactive:
- --yolo
agentInstructions:
filename: AGENTS.md
permissions:
network:
allow:
- api.business.githubcopilot.com
- api.enterprise.githubcopilot.com
- api.github.com
- api.githubcopilot.com
- api.individual.githubcopilot.com
- copilot.github.com
- github.com
- archive.ubuntu.com
- security.ubuntu.com
- ports.ubuntu.com
- download.docker.com
credentials:
- service: github
apiKey:
name: GH_TOKEN
inject:
- domain: api.github.com
header: Authorization
format: Bearer %s
- domain: github.com
header: Authorization
format: Bearer %s
- service: copilot
apiKey:
name: COPILOT_GITHUB_TOKEN
inject:
- domain: api.business.githubcopilot.com
header: Authorization
format: Bearer %s
- domain: api.enterprise.githubcopilot.com
header: Authorization
format: Bearer %s
- domain: api.githubcopilot.com
header: Authorization
format: Bearer %s
- domain: api.individual.githubcopilot.com
header: Authorization
format: Bearer %s
- domain: copilot.github.com
header: Authorization
format: Bearer %s
setup:
install:
- command: mkdir -p /home/agent/.copilot && chown agent:agent /home/agent/.copilot
user: "0"
description: Ensure .copilot is owned by agent before bind mounts and initFiles run
startup:
- command:
- sh
- -c
- command -v apt-get > /dev/null 2>&1 && (apt-get update -qq -y > /dev/null 2>&1 || true) &
user: root
description: Update apt package cache in background
- command:
- sh
- -c
- |
set -e
[ -n "$MCP_GATEWAY_URL" ] || exit 0
mkdir -p "$HOME/.copilot"
cat > "$HOME/.copilot/mcp-config.json" <<EOF
{
"mcpServers": {
"mcp-gateway": {
"type": "http",
"url": "$MCP_GATEWAY_URL",
"headers": {
"Authorization": "Bearer $MCP_SENTINEL_TOKEN_NAME"
},
"tools": ["*"]
}
}
}
EOF
user: agent
description: Register the sandbox MCP gateway in ~/.copilot/mcp-config.json
files:
- path: /home/agent/.copilot/config.json
content: '{"trusted_folders": ["${WORKDIR}"]}'
onlyIfMissing: true
description: Copilot config with trusted workspace folder