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
Create a workflow that sets a job-output env var containing a credential-like value, then invokes the agent. The agent attempts to read the excluded env var inside the sandbox and reports what it sees (or cannot see). The harness asserts the agent run succeeds without leaking the credential into the sandbox environment, confirming the --exclude-env fix works end-to-end.
New fixtures or secrets needed
A dummy (non-secret) env var name to act as the credential placeholder — no real secrets needed.
Notes
Existing test-copilot-network-isolation.md covers firewall/network isolation but not env-var exclusion. This is a regression test for the sandbox leak fixed in PR #46076.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
Motivation
Link to the gh-aw PR or issue: github/gh-aw#46076 — fix: exclude job-output credential env vars from agent sandbox (
--exclude-env)Proposed test
test-copilot-sandbox-exclude-env.mdworkflow_dispatchadd-commentorcommandMinimal test prompt sketch
Create a workflow that sets a job-output env var containing a credential-like value, then invokes the agent. The agent attempts to read the excluded env var inside the sandbox and reports what it sees (or cannot see). The harness asserts the agent run succeeds without leaking the credential into the sandbox environment, confirming the
--exclude-envfix works end-to-end.New fixtures or secrets needed
A dummy (non-secret) env var name to act as the credential placeholder — no real secrets needed.
Notes
Existing
test-copilot-network-isolation.mdcovers firewall/network isolation but not env-var exclusion. This is a regression test for the sandbox leak fixed in PR #46076.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.