{"meta":{"title":"管理GitHub高级安全性的批量许可证","intro":"可以在企业中的存储库中监视和控制许可证 Advanced Security 的可用性和消耗。","product":"计费与付款","breadcrumbs":[{"href":"/zh/billing","title":"计费与付款"},{"href":"/zh/billing/how-tos","title":"操作指南"},{"href":"/zh/billing/how-tos/products","title":"产品"},{"href":"/zh/billing/how-tos/products/manage-ghas-licenses","title":"管理 GHAS 许可证"}],"documentType":"article"},"body":"# 管理GitHub高级安全性的批量许可证\n\n可以在企业中的存储库中监视和控制许可证 Advanced Security 的可用性和消耗。\n\n可通过两种不同的方式为 GitHub Secret Protection, GitHub Code Security, and GitHub Advanced Security 许可证付费：提前购买的批量许可或订阅许可，或者按使用量计费并于事后付款。 本文介绍批量/订阅许可证。 有关这两种不同计费模式的信息，请参阅 [GitHub Advanced Security 许可证计费](/zh/billing/concepts/product-billing/github-advanced-security)。\n\n有关在企业中使用策略控制许可证使用的信息，请参阅 [强制实施企业的代码安全性和分析策略](/zh/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise)。\n\n## 更改许可证的大小\n\n1. 访问您的组织或企业。 例如，从[“组织”](https://github.com/settings/organizations?ref_product=github\\&ref_type=engagement\\&ref_style=text)或[“企业”](https://github.com/settings/enterprises?ref_product=ghec\\&ref_type=engagement\\&ref_style=text)页面打开GitHub.com。\n\n2. 在“计费和许可”页面列表中，单击“ **许可**”。\n\n   ![Advanced Security 许可屏幕的屏幕截图。 “Manage licenses”按钮以橙色框出。](/assets/images/help/enterprises/ghas-licenses-dropdown.png)\n\n3. 若要添加新许可证，请选择 <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-kebab-horizontal\" aria-label=\"Open menu\" role=\"img\"><path d=\"M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"></path></svg>，然后单击“ **管理许可证**”。\n\n4. 在“Total licenses”下，点击加号或减号按钮以添加或删除许可证。\n\n   ![Advanced Security 许可证屏幕的屏幕截图。 一个带有数字 5 的文本框以及一个减号和加号按钮以橙色框出。](/assets/images/help/enterprises/ghas-add-licenses.png)\n\n5. 单击“Confirm licenses”\\*\\*\\*\\*。\n\n## 取消您的Advanced Security订阅\n\n1. 访问您的组织或企业。 例如，从[“组织”](https://github.com/settings/organizations?ref_product=github\\&ref_type=engagement\\&ref_style=text)或[“企业”](https://github.com/settings/enterprises?ref_product=ghec\\&ref_type=engagement\\&ref_style=text)页面打开GitHub.com。\n2. 在“计费和许可”页面列表中，单击“ **许可**”。\n3. 在“”Advanced Security右侧，选择 <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-kebab-horizontal\" aria-label=\"Open menu\" role=\"img\"><path d=\"M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"></path></svg>，然后单击“ **取消订阅**”。\n4. 若要确认取消，请单击 **“我了解”，取消 Advanced Security**。\n\n## 在企业中禁用GitHub Advanced Security\n\n企业所有者可以完全禁用 GitHub Advanced Security 并设置策略，以防止将来重新启用。 请参阅“[禁用企业GitHub高级安全性](/zh/billing/how-tos/products/disable-ghas-for-enterprise)”。"}