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

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

Editing a GitHub App's permissions

注册 GitHub 应用程序后,您可以修改其权限。

Note: Updated permissions won't take effect on an installation until the owner of the account or organization approves the changes. You can use the InstallationEvent webhook to find out when people accept new permissions for your app. One exception is user-level permissions, which don't require the account owner to approve permission changes.

  1. 在任何页面的右上角,单击您的个人资料照片,然后单击 Settings(设置)
    用户栏中的 Settings 图标
  2. 在左侧边栏中,单击 Developer settings
    Developer settings 部分
  3. 在左侧边栏中,单击 GitHub Apps(GitHub 应用程序)
    GitHub Apps 部分
  4. Select the GitHub App whose permissions you want to change.
    App selection
  5. In the left sidebar, click Permissions & webhooks.
    Permissions and webhooks
  6. Modify the permissions you'd like to change. For each type of permission, select either "Read-only", "Read & write", or "No access" from the dropdown.
    Permissions selections for your GitHub App
  7. In "Subscribe to events", select any events to which you'd like to subscribe your app.
    Permissions selections for subscribing your GitHub App to events
  8. Optionally, in "Add a note to users", add a note telling your users why you are changing the permissions that your GitHub App requests.
    Input box to add a note to users explaining why your GitHub App permissions have changed
  9. 单击 Save changes(保存更改)
    Button to save permissions changes