microsoftgbb/Agent Sandbox

Network-isolated sandbox for AI agents in GitHub Actions. Runs the agent inside a Docker container with all traffic routed through a Squid proxy enforcing a configurable domain allowlist. Inspired by GitHub Next Agentic Workflows (gh-aw) Agent Workflow Firewall.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commandThe command to run inside the sandbox (e.g., copilot -p "..." --agent my-agent)yes
allowed-domainsNewline-separated list of allowed domains. Supports Squid dstdomain syntax (e.g., .example.com matches all subdomains).yes
output-pathPath inside the container where the agent writes its output (copied to workspace after execution)noagent-output.json
workspace-mountHost path to mount as /workspace in the container (defaults to GITHUB_WORKSPACE)no""
extra-mountsAdditional volume mounts, one per line in docker -v format (e.g., /host/path:/container/path:ro)no""
env-varsEnvironment variables to pass to the agent container, one per line (e.g., GITHUB_TOKEN=${{ secrets.TOKEN }})no""
imageDocker image for the agent container. Override to use a custom image with additional tools.noghcr.io/microsoftgbb/agent-sandbox:latest
namedescription
output-pathPath to the agent output file on the host
proxy-logSquid proxy access log (audit trail of all domains the agent contacted)
exit-codeExit code of the agent command