Sandbox Security Options Are Now Runtime Profiles
Sandbox security behavior is now selected through sandbox.agent.runtime. The separate sandbox.agent.legacy-security and sandbox.agent.sudo settings have been removed, making each runtime an explicit security and topology profile.
The default docker profile runs AWF without sudo and isolates network access. Workflows that need the previous privileged iptables behavior can select docker-sudo-iptables:
sandbox: agent: runtime: docker-sudo-iptablesThis profile runs AWF with sudo, uses iptables-based networking, and permits host and GitHub Actions service access. It is required for sandbox.agent.allow-host-ports and for connecting to published services: ports. Other profiles retain their own isolation guarantees: gvisor adds kernel-level isolation, while docker-sbx and cloud-hypervisor use virtual-machine boundaries.
Migrate existing workflows
Section titled “Migrate existing workflows”Run the fixer to update workflow frontmatter:
gh aw fix --writeThe sandbox-runtime-profiles codemod rewrites this configuration:
sandbox: agent: legacy-security: enableto:
sandbox: agent: runtime: docker-sudo-iptablesThe codemod also removes obsolete sudo settings and preserves compatible runtime choices. When a combination cannot be migrated without changing its security intent, the fixer reports an actionable error instead of selecting a profile silently.
After migration, compile the workflow and review the generated lock file:
gh aw compileSee the sandbox configuration reference and agent runtime reference for the behavior and constraints of each profile.