MCPcopy Create free account
hub / github.com/github/gh-aw / isAWFNetworkIsolationEnabled

Function isAWFNetworkIsolationEnabled

pkg/workflow/firewall.go:118–124  ·  view source on GitHub ↗
(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

116}
117
118func isAWFNetworkIsolationEnabled(workflowData *WorkflowData) bool {
119 agentConfig := getAgentConfig(workflowData)
120 if agentConfig == nil || agentConfig.Disabled {
121 return false
122 }
123 return agentConfig.NetworkIsolation
124}
125
126// enableFirewallByDefaultForCopilot enables firewall by default for copilot and codex engines
127// when network restrictions are present but no explicit firewall configuration exists

Callers 10

BuildAWFArgsFunction · 0.85
GetAWFCommandPrefixFunction · 0.85
resolveMCPGatewayValuesFunction · 0.85
writeMCPGatewayExportsFunction · 0.85
BuildAWFConfigJSONFunction · 0.85

Calls 1

getAgentConfigFunction · 0.85

Tested by 1