我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

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

Making a GitHub App public or private

设置 GitHub 应用程序时,您可以将其安装设为公共,使任何 GitHub 用户或组织都可以安装该应用程序,也可以将其设为私有,限制为只能在创建它的帐户上安装它。

本文内容

For authentication information, see "Authenticating with GitHub Apps."

Public installation flow

Public installation flows have a landing page where users begin the installation flow. This link is provided in the "Public link" field when setting up your GitHub App. For more information, see "Installing GitHub Apps."

Private installation flow

Private installation flows allow only the owner of a GitHub App to install it. Limited information about the GitHub App will still exist on a public page, but the Install button will only be available to organization administrators or the user account if the GitHub App is owned by an individual account. Private, or internal, GitHub Apps can only be installed on the user or organization account of the owner.

Changing who can install your GitHub App

To change who can install the GitHub App:

  1. 在任何页面的右上角,单击您的个人资料照片,然后单击 Settings(设置)
    用户栏中的 Settings 图标
  2. 在左侧边栏中,单击 Developer settings
    Developer settings 部分
  3. 在左侧边栏中,单击 GitHub Apps(GitHub 应用程序)
    GitHub Apps 部分
  4. Select the GitHub App whose installation option you want to change.
    App selection
  5. 在左侧边栏中,单击 Advanced(高级)
    Advanced(高级)选项卡
  6. Depending on the installation option of your GitHub App, click either Make public or Make internal.
    Button to change the installation option of your GitHub App
  7. Depending on the installation option of your GitHub App, click either Yes, make this GitHub App public or Yes, make this GitHub App internal.
    Button to confirm the change of your installation option

此文档对您有帮助吗?

Privacy policy

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。