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

Function getGitHubLockdown

pkg/workflow/mcp_github_config.go:177–184  ·  view source on GitHub ↗

getGitHubLockdown checks if lockdown mode is enabled for GitHub tool Defaults to constants.DefaultGitHubLockdown (false)

(githubTool map[string]any)

Source from the content-addressed store, hash-verified

175// getGitHubLockdown checks if lockdown mode is enabled for GitHub tool
176// Defaults to constants.DefaultGitHubLockdown (false)
177func getGitHubLockdown(githubTool map[string]any) bool {
178 if lockdownSetting, exists := githubTool["lockdown"]; exists {
179 if boolValue, ok := lockdownSetting.(bool); ok {
180 return boolValue
181 }
182 }
183 return constants.DefaultGitHubLockdown
184}
185
186// hasGitHubLockdownExplicitlySet checks if lockdown field is explicitly set in GitHub tool config
187func hasGitHubLockdownExplicitlySet(githubTool map[string]any) bool {

Callers 4

RenderGitHubMCPMethod · 0.85
renderGitHubTOMLMethod · 0.85
generateCreateAwInfoMethod · 0.85
TestGitHubLockdownFieldFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGitHubLockdownFieldFunction · 0.68