跳到主内容
@wquguru
精选80GitHub Changelog云与平台

GitHub Apps企业级安装正式可用,扩展治理与安全API权限

Enterprise installations for GitHub Apps generally available

原文
发到 X
推荐理由

重度依赖 GitHub 自动化工作流的读者请注意:GitHub Apps 现正式支持企业级安装,并解锁了大量此前仅限 PAT 使用的治理与安全 API。建议评估是否将核心自动化流程迁移至 App 模式以提升安全性与权限粒度。

Installing GitHub Apps on your enterprise is now generally available. You can replace classic PATs with GitHub Apps in more of your enterprise and organization automation with the expanded API support detailed below. These new and expanded permissions are focused on governance, security, and administrative settings for your enterprise, with two gaps at the organization level also closed.

GitHub Apps 在企业中的安装现已全面可用。借助下文详述的扩展 API 支持,您可以在更多的企业自动化和组织自动化场景中,使用 GitHub Apps 替换传统的个人访问令牌(PAT)。这些新增和扩展的权限专注于企业的治理、安全和行政设置,同时也填补了组织层面的两项空白。

What’s new for GitHub Apps

GitHub Apps 的新增功能

  • Governance: Manage enterprise-level repository policies and rulesets as well as read delegated bypass requests.
  • Security: Configure two-factor authentication requirements, verify domains, manage IP allowlists, and control enterprise access restrictions.
  • Administration: Update enterprise profiles and manage both member privileges and repository access settings across the enterprise.
  • 治理:管理企业级存储库策略和规则集,以及读取委托的绕过请求。
  • 安全:配置双因素身份验证要求、验证域名、管理 IP 白名单,并控制企业访问限制。
  • 管理:更新企业配置文件,并管理整个企业的成员权限和存储库访问设置。

New permissions and API coverage

新增权限与 API 覆盖范围

Choose the permissions your workflow needs in your GitHub App settings.

在您的 GitHub App 设置中选择工作流所需的权限。

PermissionAccessNewly supported APIs and GraphQL data
Enterprise organization and repository policiesRead/writeRead policy fields on EnterpriseOwnerInfo. Update private repository forking, default repository permissions, repository visibility changes, repository creation, repository deletion, issue deletion, collaborator invitations, deploy keys, protected branch updates, dependency insights setting, organization projects setting, and repository projects.
Enterprise bypass requestsReadRead push-rule and repository-policy bypass requests.
Enterprise settingsRead/writeRead enterprise data through EnterpriseOwnerInfo, including server installations and organization invitations. Update the enterprise profile. Read is required for access to the enterprise organization and repository policies.
Enterprise two-factor authenticationRead/writeRead two-factor fields on EnterpriseOwnerInfo. Update two-factor requirements and disallowed authentication methods.
Enterprise verifiable domains; organization verifiable domainsWriteAccess VerifiableDomains for enterprises or organizations.
Enterprise IP allowlist; organization IP allowlistRead/writeAccess IpAllowListEntry and associated mutations to create, update, and delete entries on an enterprise or organization IP allowlist. Also toggle allowlist enforcement, trust of GitHub Apps, and user-level enforcement for Enterprise Managed Users.
Enterprise access restrictionsWriteEnable or disable enterprise access restrictions.
Enterprise repository rulesetsWriteManage rulesets through the enterprise rules REST APIs and RepositoryRuleset in GraphQL.
权限访问级别新支持的 API 和 GraphQL 数据
企业组织和仓库策略读写读取 EnterpriseOwnerInfo 上的策略字段。更新私有仓库分叉、默认仓库权限、仓库可见性更改、仓库创建、仓库删除、Issue 删除、协作者邀请、部署密钥、受保护分支更新、依赖洞察设置、组织项目设置和仓库项目。
企业绕过请求读取读取 push-rule 和 repository-policy 的绕过请求。
企业设置读写通过 EnterpriseOwnerInfo 读取企业数据,包括服务器安装和组织邀请。更新企业配置文件。访问企业组织和仓库策略需要读取权限。
企业双因素认证读写读取 EnterpriseOwnerInfo 上的双因素字段。更新双因素要求和禁止的认证方法。
企业可验证域名;组织可验证域名写入访问企业或组织的 VerifiableDomains。
企业 IP 白名单;组织 IP 白名单读写访问 IpAllowListEntry 及相关变体,以在企业或组织 IP 白名单上创建、更新和删除条目。同时切换白名单强制执行、GitHub Apps 的信任以及企业托管用户 (Enterprise Managed Users) 的用户级强制执行。
企业访问限制写入启用或禁用企业访问限制。
企业仓库规则集写入通过企业规则 REST API 和 GraphQL 中的 RepositoryRuleset 管理规则集。

More coverage with existing permissions

使用现有权限实现更广泛的覆盖

Some APIs and objects had gaps in their support for GitHub Apps. These fixes should unblock more automation scenarios with those permissions.

部分 API 和对象在支持 GitHub Apps 方面存在空白。这些修复应能解除那些权限下更多自动化场景的限制。

PermissionAccessNewly supported APIs and GraphQL data
Enterprise peopleRead/writeRead EnterpriseRepositoryInfo, including repository details through EnterpriseOwnerInfo.outsideCollaborators. Add yourself to an organization with the owner or member role.
Enterprise billingWriteUpdate the member purchasing setting for the Marketplace.
权限访问级别新支持的 API 和 GraphQL 数据
企业人员读写读取 EnterpriseRepositoryInfo,包括通过 EnterpriseOwnerInfo.outsideCollaborators 获取的仓库详情。将自己添加到具有所有者或成员角色的组织中。
企业计费写入更新 Marketplace 的成员购买设置。

To get started, choose permissions for your GitHub App for the workflows you want to migrate.

要开始使用,请为要迁移的工作流选择 GitHub App 的权限。

These updates will be available in GHES 3.24. For details on using GraphQL with a GitHub App, see Managing an enterprise account with GraphQL. To learn more about enterprise app installations, see Installing a GitHub App on your enterprise.

这些更新将在 GHES 3.24 中提供。有关使用 GraphQL 与 GitHub App 的详细信息,请参阅使用 GraphQL 管理企业账户。要了解有关企业应用安装的更多信息,请参阅在企业上安装 GitHub App。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件