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

Method addCopilotSandboxEnv

pkg/workflow/copilot_engine_execution.go:591–598  ·  view source on GitHub ↗
(env map[string]string, sandboxEnabled bool)

Source from the content-addressed store, hash-verified

589}
590
591func (e *CopilotEngine) addCopilotSandboxEnv(env map[string]string, sandboxEnabled bool) {
592 // Inject the dummy BYOK sentinel and AWF_REFLECT_ENABLED only when the AWF sandbox is active.
593 // COPILOT_API_KEY itself is exported in PathSetup via shell variable expansion to avoid false positives.
594 if sandboxEnabled {
595 env[constants.CopilotBYOKDummyAPIKeyEnvVar] = constants.CopilotBYOKDummyAPIKey
596 env["AWF_REFLECT_ENABLED"] = "1"
597 }
598}
599
600func (e *CopilotEngine) addCopilotSDKStepEnv(env map[string]string, workflowData *WorkflowData, copilotSDKServerArgsJSON string) {
601 // When copilot-sdk: true, provide the SDK URI that the harness uses to start a separate headless server.

Callers 1

buildCopilotStepEnvMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected