Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-06-03. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

About billing for GitHub Advanced Security

If you want to use GitHub Advanced Security features, you need a license.

GitHub Advanced Security 适用于 GitHub Enterprise Cloud 和 GitHub Enterprise Server 3.0 或更高版本上的企业帐户。 有关升级 GitHub Enterprise Server 实例的更多信息,请参阅“关于升级到新版本”,并参阅 升级助手 以查找当前发行版的升级路径。

About billing for GitHub Advanced Security

You can make extra features for code security available to users by buying and uploading a license for GitHub Advanced Security. For more information about GitHub Advanced Security, see "About GitHub Advanced Security."

GitHub Advanced Security 的每个许可证都规定了可以使用这些功能的最大帐户或席位数量。 至少一个启用了该功能的仓库的每个活跃提交者将使用一个席位。 如果提交者的某个提交在过去 90 天内被推送到存储库,则� 论其最初创建时间如何,都将被视为活动提交者。

注意: 活动提交者是使用提交作者信息和将代� �推送到 GitHub Enterprise Server 时的时间戳计算的。

  • 当用户将代� �推送到 GitHub 时,在该推送中编写代� �的每个用户都会计入 GitHub Advanced Security 席位,即使代� �不是 GitHub 的新代� �。

  • 用户应始终从最近的基本分支创建分支,或在推送之前变基。 这将确保在过去 90 天内未提交的用户不会� 用 GitHub Advanced Security 席位。

To discuss licensing GitHub Advanced Security for your enterprise, contact GitHub' 销售团队.

About committer numbers for GitHub Advanced Security

We record and display two numbers of committers for GitHub Advanced Security on 您的 GitHub Enterprise Server 实例:

  • Committers is the number of committers who contributed to at least one repository in an organization and who use a seat in your enterprise license. That is, they are also an organization member, an external collaborator, or have a pending invitation to join an organization in your enterprise.
  • Unique to this repository/organization is the number of committers who contributed only to this repository, or to repositories in this organization. This number shows how many license seats you can free up by disabling GitHub Advanced Security for that repository or organization.

If there are no unique committers, all active committers also contribute to other repositories or organizations that use GitHub Advanced Security. Disabling the feature for that repository or organization would not free any seats on your license.

When you remove a user from your enterprise account, the user's license is freed within 24 hours.

Note: Users can contribute to multiple repositories or organizations. Usage is measured across the whole enterprise account to ensure that each member uses one seat regardless of how many repositories or organizations the user contributes to.

为仓库启用或禁用 Advanced Security 时,GitHub 将显示许可证使用情况变化的概况。 如果您禁用对 GitHub Advanced Security 的访问,任何被“唯一”提交者使用的席位都将释放。

如果您超过了许可证限制,GitHub Advanced Security 将继续在所有已启用的仓库中工作。 但是,在为新仓库启用 GitHub Advanced Security 的组织中,将会创建禁用该功能的仓库。 此外,对现有仓库启用 GitHub Advanced Security 的选项将不可用。

一旦您释放一些席位,通过对某些仓库禁用 GitHub Advanced Security 或通过增� 您的许可证大小,用于启用 GitHub Advanced Security 的选项将继续正常工作。

You can enforce policies to allow or disallow the use of Advanced Security by organizations owned by your enterprise account. For more information, see "Enforcing policies for Advanced Security in your enterprise."

For more information on viewing license usage, see "Viewing your GitHub Advanced Security usage."

Understanding active committer usage

The following example timeline demonstrates how active committer count for GitHub Advanced Security could change over time in an enterprise. For each month, you will find events, along with the resulting committer count.

DateEvents during the monthTotal committers
April 15A member of your enterprise enables GitHub Advanced Security for repository X. Repository X has 50 committers over the past 90 days.50
May 1Developer A leaves the team working on repository X. Developer A's contributions continue to count for 90 days.50
August 1Developer A's contributions no longer count towards the licences required, because 90 days have passed.50 - 1
49
August 15A member of your enterprise enables GitHub Advanced Security for a second repository, repository Y. In the last 90 days, a total of 20 developers contributed to that repository. Of those 20 developers, 10 also recently worked on repo X and do not require additional licenses.49 + 10
59
August 16A member of your enterprise disables GitHub Advanced Security for repository X. Of the 49 developers who were working on repository X, 10 still also work on repository Y, which has a total of 20 developers contributing in the last 90 days.49 - 29
20

Note: A user will be flagged as active when their commits are pushed to any branch of a repository, even if the commits were authored more than 90 days ago.

Getting the most out of GitHub Advanced Security

当您决定哪些仓库和组织优先用于 GitHub Advanced Security 时,应该查看它们并识别:

  • 对公司成功至关重要的代� �库。 These are the projects for which the introduction of vulnerable code, hard-coded secrets, or insecure dependencies would have the greatest impact on your company.
  • 提交频率最高的代� �库。 这些是最积极开发的项目,� 此出现安全问题的风险较高。

对这些组织或仓库启用 GitHub Advanced Security 后,评估您可以添� 哪些其他代� �库,而不会对唯一提交者产生计费。 最后,查看其余重要和繁忙的代� �库。 如果您想增� 许可证中的席位数,请联系 GitHub' 销售团队