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

Function getAgentConfig

pkg/workflow/firewall.go:110–116  ·  view source on GitHub ↗

getAgentConfig returns the agent sandbox configuration from sandbox config

(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

108
109// getAgentConfig returns the agent sandbox configuration from sandbox config
110func getAgentConfig(workflowData *WorkflowData) *AgentSandboxConfig {
111 if workflowData == nil || workflowData.SandboxConfig == nil {
112 return nil
113 }
114
115 return workflowData.SandboxConfig.Agent
116}
117
118func isAWFNetworkIsolationEnabled(workflowData *WorkflowData) bool {
119 agentConfig := getAgentConfig(workflowData)

Callers 13

getFirewallConfigFunction · 0.85
GetInstallationStepsMethod · 0.85
BuildAWFArgsFunction · 0.85
GetAWFCommandPrefixFunction · 0.85
GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85
validateSandboxConfigFunction · 0.85
GetExecutionStepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected