sha256:c28e878aa5fa83900b8b71a4c75aec770b3366249e40cabfd10921d2b8e44802
Last pushed
28 days by dockerpublicbot
Type
Sandbox Kit
Manifest digest
sha256:c28e878aa5fa83900b8b71a4c75aec770b3366249e40cabfd10921d2b8e44802
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
files:
- path: /home/agent/.copilot/config.json
content: '{"trusted_folders": ["${WORKDIR}"]}'
onlyIfMissing: true
description: Copilot config with trusted workspace folder