Skip to main content

将GitHub应用公开或专用

注册 GitHub App 时,你可以选择将其设置为公开,以便其他 GitHub 用户可以安装该应用,或者设置为私有,仅能在拥有该应用的帐户上安装。

About visibility for GitHub Apps

A GitHub App can be . If you set your GitHub App registration to public, anyone on your GitHub Enterprise Server instance can install it, but the app is not available outside of your instance. If you set your GitHub App registration to private, it can only be installed on the account that owns the app.

If you want your GitHub App to be available to organizations in a GitHub Enterprise Server instance that you are not part of, then you need to take additional steps. For more information, see Making your GitHub App available for GitHub Enterprise Server.

If it is important for other GitHub Enterprise Server users to be able to use your tool, consider using GitHub Actions instead of a GitHub App. Public actions are available on GitHub Enterprise Server instances with GitHub Connect. For more information, see Enabling automatic access to GitHub.com actions using GitHub Connect and About GitHub Actions for enterprises.

For information about changing the visibility of a GitHub App registration, see Modifying a GitHub App registration.

Public installation flow

Public GitHub Apps have a landing page with an Install button, so that other people can install the app on their accounts.

Private installation flow

Private GitHub Apps can only be installed on the user or organization account of the app owner. Limited information about the app will exist on a landing page for the app, and the Install button will only be available to organization owners and app managers for the organization that owns the app, or the personal account if the GitHub App is owned by an individual account.