You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds test-copilot-network-isolation.md — a minimal workflow_dispatch test that verifies gh-aw can compile and execute a workflow when sandbox.agent.network-isolation: true is set.
Neither change has E2E coverage in this repository.
What the test does
Sets sandbox.agent.network-isolation: true in the workflow frontmatter and asks the agent to create a single GitHub issue. Success confirms:
gh aw compile accepts the sandbox.agent.network-isolation field without error
The compiled lockfile runs successfully on a GitHub-hosted runner using container-based egress (no sudo)
Test file
.github/workflows/test-copilot-network-isolation.md — source only; lockfile is intentionally omitted per AGENTS.md §4 and will be generated by the nightly matrix.
Notes
Uses the standard create-issue safe output with a samples: block for deterministic --use-samples runs
No new fixtures or secrets required; uses githubnext/gh-aw-test
network-isolation is treated as a <feature> name (not a <variant>) in the test filename since it is not one of the two official variants (nosandbox, siderepo)
All three engines (copilot, claude, codex) could eventually have a matching test; this PR covers the copilot variant only
The bundle file is available in the agent artifact in the workflow run linked above.
To create a pull request with the changes:
# Download the artifact from the workflow run
gh run download 28124898027 -n agent -D /tmp/agent-28124898027
# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-28124898027/aw-test-copilot-network-isolation.bundle refs/heads/test-copilot-network-isolation:refs/bundles/create-pr-test-copilot-network-isolation-72976105fc33813a-088348e1
git update-ref refs/heads/test-copilot-network-isolation-72976105fc33813a refs/bundles/create-pr-test-copilot-network-isolation-72976105fc33813a-088348e1
git checkout test-copilot-network-isolation-72976105fc33813a
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-test-copilot-network-isolation-72976105fc33813a-088348e1
# Push the branch to origin
git push origin test-copilot-network-isolation-72976105fc33813a
# Create the pull request
gh pr create --title 'test: add copilot/network-isolation E2E test' --base main --head test-copilot-network-isolation-72976105fc33813a --repo githubnext/gh-aw-test
Caution
Protected files were modified in this change.
This pull request is in
request_reviewmode and requires explicit human scrutiny before merge.Protected files:
.github/workflows/test-copilot-network-isolation.mdAdds
test-copilot-network-isolation.md— a minimalworkflow_dispatchtest that verifies gh-aw can compile and execute a workflow whensandbox.agent.network-isolation: trueis set.Motivation
--network-isolationtopology mode (ARC/DinD-compatible egress) github/gh-aw#41088 added compiler support for the--network-isolationtopology mode (container-based egress; avoids host iptables andsudo)sudofrom the generated lockfile when this mode is enabledNeither change has E2E coverage in this repository.
What the test does
Sets
sandbox.agent.network-isolation: truein the workflow frontmatter and asks the agent to create a single GitHub issue. Success confirms:gh aw compileaccepts thesandbox.agent.network-isolationfield without errorsudo)Test file
.github/workflows/test-copilot-network-isolation.md— source only; lockfile is intentionally omitted per AGENTS.md §4 and will be generated by the nightly matrix.Notes
create-issuesafe output with asamples:block for deterministic--use-samplesrunsgithubnext/gh-aw-testnetwork-isolationis treated as a<feature>name (not a<variant>) in the test filename since it is not one of the two official variants (nosandbox,siderepo)Note
This was originally intended as a pull request, but the git push operation failed.
Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.To create a pull request with the changes: