{"meta":{"title":"管理对 GitHub Copilot 云代理的访问权限","intro":"了解适用于 Copilot cloud agent 和 GitHub Copilot Enterprise 的 GitHub Copilot Business 策略，以及禁用特定存储库的代理。","product":"GitHub Copilot","breadcrumbs":[{"href":"/zh/enterprise-cloud@latest/copilot","title":"GitHub Copilot"},{"href":"/zh/enterprise-cloud@latest/copilot/concepts","title":"概念"},{"href":"/zh/enterprise-cloud@latest/copilot/concepts/agents","title":"智能体"},{"href":"/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent","title":"Cloud agent"},{"href":"/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/access-management","title":"访问管理"}],"documentType":"article"},"body":"# 管理对 GitHub Copilot 云代理的访问权限\n\n了解适用于 Copilot cloud agent 和 GitHub Copilot Enterprise 的 GitHub Copilot Business 策略，以及禁用特定存储库的代理。\n\n> \\[!NOTE]\n> 关于Copilot cloud agent的介绍，请查看[关于 GitHub Copilot 云代理](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/about-cloud-agent)。\n\n## 概述\n\nCopilot cloud agent 是一种 AI 支持的软件开发代理，可以自主处理问题或开发人员请求。 它会创建草稿拉取请求以提出修复方案，并根据反馈对更改进行迭代。\n\n如果您是GitHub Copilot Enterprise或GitHub Copilot Business订阅者，Copilot cloud agent默认为禁用状态，必须由管理员启用后才能使用。\n\n如果您是Copilot Pro、Copilot Pro+或Copilot Max订阅者，则默认启用Copilot cloud agent。\n\n启用后，可以在任何存储库中使用 Copilot cloud agent ，前提是管理员没有选择将存储库排除在外。\n\n## Copilot cloud agent 和 Copilot Business 的 Copilot Enterprise 策略\n\n对于 GitHub Copilot Business 和 GitHub Copilot Enterprise 订阅者，使用 Copilot cloud agent 能力由组织级别定义的策略设置控制。 请参阅“[将GitHub Copilot云代理添加到组织](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)”。\n\n如果该组织归企业所有，则可以在企业级别控制启用情况。 请参阅“[在企业中启用GitHub Copilot云代理](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/enable-copilot-cloud-agent)”。\n\n## 从 Copilot cloud agent 中选择存储库\n\n默认情况下，启用Copilot cloud agent的用户可以在所有存储库中使用此功能。\n\n企业管理员和组织所有者（对于组织拥有的存储库）和用户（对于用户拥有的存储库）可以选择退出存储库，并阻止 Copilot cloud agent 在这些存储库中使用。\n\n有关在组织拥有的某些或所有存储库中禁用 Copilot cloud agent 的信息，请参阅 [将GitHub Copilot云代理添加到组织](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)。\n\n有关在企业拥有的所有存储库中禁用 Copilot cloud agent 的信息，请参阅 [在您的企业中阻止智能体功能](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/block-agentic-features)。\n\n有关在个人用户帐户拥有的存储库中禁用 Copilot cloud agent 的信息，请参阅 [以个人订阅者身份管理 GitHub Copilot 策略](/zh/enterprise-cloud@latest/copilot/how-tos/manage-your-account/manage-policies#disabling-or-enabling-copilot-cloud-agent-in-your-repositories)。\n\n## 管理对 Automations 的访问权限\n\nAutomations 让用户按计划或响应事件自动运行 Copilot cloud agent 。 请参阅“[关于 Copilot 自动化](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/about-automations)”。\n\n若要 automations 在存储库中可用，以下所有内容都必须为 true：\n\n* 存储库必须是 **专用存储库或内部**存储库。\n  Automations 在公共存储库中不可用。\n* 必须为该存储库启用 Copilot cloud agent。 如果您拥有 Copilot Business 或 Copilot Enterprise，则管理员必须启用 Copilot cloud agent 策略。 请参阅“[管理对 GitHub Copilot 云代理的访问权限](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/access-management)”。\n* 组织必须在存储库中同时允许 Copilot cloud agent 和 automations（二者默认均处于启用状态）。 请参阅“[将GitHub Copilot云代理添加到组织](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)”。\n\nAutomations可用于GitHub Copilot Pro、GitHub Copilot Pro+、GitHub Copilot Max、GitHub Copilot Business和GitHub Copilot Enterprise计划。\n\n除了 Copilot cloud agent 策略之外，组织还可以控制是否允许在存储库中使用 automations。\nAutomations 在启用的 Copilot cloud agent 存储库中默认启用。 有关详细信息，请参阅“[将GitHub Copilot云代理添加到组织](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)”。\n\n## 延伸阅读\n\n* [GitHub Copilot云代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent)\n* [配置开发环境](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment)\n* [自定义或禁用GitHub Copilot的防火墙](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-the-firewall)\n* [为存储库配置 MCP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers)\n* [在组织中试点GitHub Copilot云代理](/zh/enterprise-cloud@latest/copilot/tutorials/cloud-agent/pilot-cloud-agent)"}