GitHub Apps 现可访问企业账单数据,支持读取与读写权限
GitHub Apps can now access enterprise billing data
企业账单自动化开发者注意:GitHub Apps 现在能直接访问账单数据,摆脱个人令牌依赖,建议尽快为你的 App 配置企业账单权限并迁移相关脚本。
Enterprise owners can now grant a GitHub App access to enterprise billing data. When you create or configure a GitHub App, you can select the enterprise billing permission and choose one of two levels: read or read and write.
企业所有者现在可以授予 GitHub App 访问企业账单数据的权限。当您创建或配置 GitHub App 时,可以选择企业账单权限,并选择两个级别之一:只读或读写。
Previously, the only way to read usage or manage budgets and cost centers through the API was a personal access token belonging to an enterprise owner or billing manager. That tied your billing automation to one person’s token, so it broke when that person changed roles or left.
以前,通过 API 读取使用情况或管理预算和成本中心的唯一方式是使用企业所有者或账单管理员的个人访问令牌。这使您的账单自动化依赖于某个人的令牌,因此当该人更换角色或离职时,自动化就会中断。
Now an app installation access token that carries the enterprise billing permission can call the enterprise billing REST API endpoints. Use it to pull usage data into your finance and BI systems, reconcile invoices, and manage budgets and cost centers, all without relying on an individual’s token. As an added benefit, you also get higher rate limits than a personal access token.
现在,带有企业账单权限的应用安装访问令牌可以调用企业账单 REST API 端点。使用它可以将使用数据拉取到您的财务和 BI 系统中,核对发票,并管理预算和成本中心,而无需依赖个人的令牌。额外的好处是,您还可以获得比个人访问令牌更高的速率限制。
The enterprise billing permission is available on GitHub Enterprise Cloud. To learn more, see Choosing permissions for a GitHub App.
企业账单权限在 GitHub Enterprise Cloud 上可用。要了解更多信息,请参阅为 GitHub App 选择权限。
The post GitHub Apps can now access enterprise billing data appeared first on The GitHub Blog.
文章《GitHub Apps 现在可以访问企业账单数据》最初出现在 GitHub 博客上。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力