getGitHubLockdown checks if lockdown mode is enabled for GitHub tool Defaults to constants.DefaultGitHubLockdown (false)
(githubTool map[string]any)
| 175 | // getGitHubLockdown checks if lockdown mode is enabled for GitHub tool |
| 176 | // Defaults to constants.DefaultGitHubLockdown (false) |
| 177 | func 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 |
| 187 | func hasGitHubLockdownExplicitlySet(githubTool map[string]any) bool { |
no outgoing calls