You can download CSV files with details of paid license use through the GitHub user interface or the REST API.
For more detailed reports on usage of all paid products, see Viewing your usage of metered products and licenses.
On GitHub Enterprise Cloud
-
In the upper-right corner of any page on GitHub, click your profile picture.
-
Select the account you want to view and then access the "Billing & Licensing" pages:
-
Organizations: Click Your organizations, then next to the organization, click Settings. In the organization sidebar, click Billing & Licensing.
-
Enterprises: Click Your enterprises, then click the enterprise name. Click the Billing & Licensing tab at the top of the page.
-
-
From the list of "Billing & licensing" pages, click Licensing to display the licensing page.
-
In the license area of interest, click Download CSV report. If offered a choice, choose your preferred report.
The report will be emailed to the default email address associated with your GitHub account. For information about the fields, see License reports reference.
On GitHub Enterprise Server
- 在 GitHub 的右上角,单击你的个人资料图片。
- 根据环境,单击“你的企业”,或单击“你的企业”,然后单击要查看的企业********。
- 在“ Settings”下,单击“”********。
The page shows a summary of the licenses your enterprise is using for GitHub Enterprise and GitHub Advanced Security. Use links on the page to view more detailed information.
To download a license usage report for GitHub Advanced Security:
- Enterprise: In "GitHub Advanced Security", click CSV report.
- Organization: In the "ORGANIZATION" table, click associated with the organization that you want to download a CSV report for.
- User namespace: In the "USER NAMESPACED" table, click associated with the user that you want to download a CSV report for.
- Repository: In the "ORGANIZATION" table, click the name of an organization to show a settings page for the organization. In the GitHub Advanced Security repositories table, click and select Download CSV report.
For details of the fields included in the report, see License reports reference.
Using the REST API
You can retrieve information on paid use of Advanced Security with the billing API.
-
Organization-level data (cloud only), use the
/organizations/{org}/settings/billing/usage
endpoint. For more information, see 增强型计费平台. -
Enterprise-level data, use the
/enterprises/{enterprise}/settings/billing/usage
endpoint. For more information, see 适用于企业计费的 REST API 终结点 in the GitHub Enterprise Cloud documentation.