Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com> Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com> Co-authored-by: Felicity Chapman <felicitymay@github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com> Co-authored-by: Dorothy Mitchell <19343236+dorothymitchell@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
164 lines
11 KiB
Markdown
164 lines
11 KiB
Markdown
---
|
|
title: Viewing your GitHub Advanced Security usage
|
|
intro: 'You can view usage of {% data variables.product.prodname_GH_advanced_security %} for your enterprise.'
|
|
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
|
|
product: '{% data reusables.gated-features.ghas %}'
|
|
redirect_from:
|
|
- /billing/managing-licensing-for-github-advanced-security/viewing-your-github-advanced-security-usage
|
|
- /admin/advanced-security/viewing-your-github-advanced-security-usage
|
|
- /github/setting-up-and-managing-billing-and-payments-on-github/managing-licensing-for-github-advanced-security/viewing-your-github-advanced-security-usage
|
|
- /github/setting-up-and-managing-your-enterprise/managing-use-of-advanced-security-for-organizations-in-your-enterprise-account
|
|
- /github/setting-up-and-managing-billing-and-payments-on-github/viewing-your-github-advanced-security-usage
|
|
versions:
|
|
ghes: '*'
|
|
ghec: '*'
|
|
type: how_to
|
|
topics:
|
|
- Advanced Security
|
|
- Enterprise
|
|
shortTitle: View Advanced Security usage
|
|
---
|
|
|
|
## About licenses for {% data variables.product.prodname_GH_advanced_security %}
|
|
|
|
Each license for {% data variables.product.prodname_GH_advanced_security %} specifies a maximum number of {% ifversion ghas-billing-UI-update %}licenses {% endif %}that can use these features. Periodically you should check that your use is within your license capacity. For more information, see "[AUTOTITLE](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."
|
|
|
|
{% ifversion ghas-committers-calculator %}
|
|
You can estimate the number of licenses your enterprise would need to purchase {% data variables.product.prodname_GH_advanced_security %} or to enable {% data variables.product.prodname_GH_advanced_security %} for additional organizations and repositories. For more information, see "[AUTOTITLE](/billing/managing-billing-for-github-advanced-security/viewing-committer-information-for-github-advanced-security)."
|
|
{% endif %}
|
|
|
|
## Viewing {% data variables.product.prodname_GH_advanced_security %} license usage for your enterprise account
|
|
|
|
You can view the enterprise account's current {% ifversion ghas-billing-UI-update %}license{% endif %} limits and usage.
|
|
|
|
{% ifversion ghec %}
|
|
|
|
{% data reusables.enterprise-accounts.access-enterprise %}
|
|
{% data reusables.enterprise-accounts.settings-tab %}
|
|
{% data reusables.enterprise-accounts.license-tab %}
|
|
The "{% data variables.product.prodname_GH_advanced_security %}" section shows details of the current usage.
|
|
|
|
If you run out of licenses, the section will be red and show "Limit exceeded." You should either reduce your use of {% data variables.product.prodname_GH_advanced_security %} or purchase more licenses. For more information, see "[AUTOTITLE](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security#getting-the-most-out-of-github-advanced-security)" and "[AUTOTITLE](/billing/managing-billing-for-github-advanced-security/managing-your-github-advanced-security-licensing)."
|
|
|
|
{% ifversion security-configurations %}
|
|
{% note %}
|
|
|
|
**Note:** {% data reusables.security-configurations.managing-GHAS-licenses %}
|
|
|
|
{% data reusables.security-configurations.security-configurations-beta-note-short %}
|
|
|
|
{% endnote %}
|
|
{% endif %}
|
|
|
|
{% elsif ghes %}
|
|
|
|
{% data reusables.enterprise-accounts.access-enterprise %}
|
|
{% data reusables.enterprise-accounts.settings-tab %}
|
|
{% data reusables.enterprise-accounts.license-tab %}
|
|
The "{% data variables.product.prodname_GH_advanced_security %}" section shows details of the current usage. You can see the total number of licenses used, as well as a table with the number of committers and unique committers for each organization.
|
|
|
|
{% endif %}
|
|
{%- ifversion ghec -%}
|
|
1. Optionally, to see a detailed breakdown of usage per organization{% ifversion secret-scanning-user-owned-repos %} and user namespace when using {% data variables.product.prodname_emus %}{% endif %}, in the enterprise account sidebar, click **Billing**.
|
|
|
|
In the “{% data variables.product.prodname_GH_advanced_security %}” section, you can see a summary of your current license usage, as well as the number of committers and unique committers for each organization{% ifversion secret-scanning-user-owned-repos %} and user namespace when using {% data variables.product.prodname_emus %}{% endif %}. The organizations{% ifversion secret-scanning-user-owned-repos %} and user namespaces{% endif %} in the billing table are sorted by the highest number of unique committers in descending order.
|
|
{% endif %}
|
|
1. Optionally, display the security and analysis settings for an organization.
|
|
- Click the name of the organization.
|
|
|
|
{% ifversion ghec %}
|
|
- On the "Code security & analysis" settings page, scroll to the "{% data variables.product.prodname_GH_advanced_security %} repositories" section to see an overview of your organization's license usage, as well as a detailed breakdown of usage by repository for this organization.
|
|
|
|
For more information, see "[AUTOTITLE](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization)."
|
|
|
|
{% else %}
|
|
- On the "Security & analysis" settings page, scroll to the "{% data variables.product.prodname_GH_advanced_security %} repositories" section to see a detailed breakdown of usage by repository for this organization.
|
|
|
|
For more information, see "[AUTOTITLE](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-security-and-analysis-settings-for-your-organization)."
|
|
|
|
{% ifversion security-configurations %}
|
|
{% note %}
|
|
|
|
**Note:** {% data reusables.security-configurations.managing-GHAS-licenses %}
|
|
|
|
{% data reusables.security-configurations.security-configurations-beta-note-short %}
|
|
|
|
{% endnote %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
## Downloading {% data variables.product.prodname_GH_advanced_security %} license usage information
|
|
|
|
You can download a CSV file with {% data variables.product.prodname_GH_advanced_security %} license usage information at both the enterprise and organization levels. The CSV file contains information about each {% data variables.product.prodname_advanced_security %} license that is in use, including:
|
|
|
|
- The username of the person using the {% ifversion ghas-billing-UI-update %}license{% endif %}
|
|
- The {% data variables.product.prodname_advanced_security %}-enabled repositories where commits were made
|
|
- The organizations{% ifversion secret-scanning-user-owned-repos %}{% ifversion ghec %} and user namespaces for {% data variables.product.prodname_emus %}{% endif %}{% endif %} that people using {% ifversion ghas-billing-UI-update %}licenses{% endif %} belong to
|
|
- The most recent commit dates{% ifversion ghec or ghes > 3.11 %} and associated email addresses{% endif %}
|
|
|
|
You can use this information for insights into your {% data variables.product.prodname_advanced_security %} usage, such as which members of your enterprise are using an {% data variables.product.prodname_advanced_security %} {% ifversion ghas-billing-UI-update %}license{% endif %} or how {% data variables.product.prodname_advanced_security %} licenses are being consumed across your organizations.
|
|
|
|
You can download the {% data variables.product.prodname_advanced_security %} license usage CSV through the {% data variables.product.product_name %} user interface or the REST API.
|
|
|
|
### Downloading {% data variables.product.prodname_advanced_security %} license usage information through the UI
|
|
|
|
{% ifversion ghec %}
|
|
|
|
#### At the repository-level
|
|
|
|
{% data reusables.profile.access_org %}
|
|
{% data reusables.profile.org_settings %}
|
|
1. In the "Security" section of the sidebar, click {% octicon "codescan" aria-hidden="true" %} **Code security and analysis**.
|
|
1. In the "{% data variables.product.prodname_GH_advanced_security %} repositories" section, next to the repository you want usage information for, select {% octicon "kebab-horizontal" aria-label="GHAS repository actions" %}, then click **Download CSV report**.
|
|
|
|

|
|
|
|
{% endif %}
|
|
|
|
{% ifversion ghec %}
|
|
|
|
#### At the organization-level
|
|
|
|
{% data reusables.profile.access_org %}
|
|
{% data reusables.profile.org_settings %}
|
|
{% data reusables.organizations.billing_plans %}
|
|
1. Underneath "{% data variables.product.prodname_GH_advanced_security %}," next to "Committers", click **{% octicon "download" aria-hidden="true" %} CSV report**.
|
|
{% endif %}
|
|
|
|
{% ifversion ghec %}
|
|
|
|
#### At the enterprise-level
|
|
|
|
{% endif %}
|
|
|
|
{% data reusables.enterprise-accounts.access-enterprise %}
|
|
{% data reusables.enterprise-accounts.settings-tab %}
|
|
{% data reusables.enterprise-accounts.license-tab %}
|
|
|
|
{%- ifversion ghec %}
|
|
1. Under "{% data variables.product.prodname_GH_advanced_security %}," click the **Manage** dropdown and then click **Download report**.
|
|
|
|

|
|
|
|
{%- elsif ghes %}
|
|
1. Under "{% data variables.product.prodname_GH_advanced_security %}," click {% octicon "download" aria-hidden="true" %} **CSV report** in the header of the "Committers" table.
|
|
|
|

|
|
|
|
{%- else %}
|
|
1. Under "{% data variables.product.prodname_GH_advanced_security %}," {% octicon "download" aria-label="The download icon" %} in the header of the "Committers" table.
|
|
|
|
{%- endif %}
|
|
|
|
### Downloading {% data variables.product.prodname_advanced_security %} license usage information through the REST API
|
|
|
|
You can retrieve {% data variables.product.prodname_advanced_security %} usage information via the billing API.
|
|
|
|
{% ifversion ghec %}
|
|
|
|
For organization-level data, use the `/orgs/{org}/settings/billing/advanced-security` endpoint. For more information, see "[AUTOTITLE](/rest/billing/billing#get-github-advanced-security-active-committers-for-an-organization)."
|
|
|
|
{% endif %}
|
|
|
|
For enterprise-level data, use the `/enterprises/{enterprise}/settings/billing/advanced-security` endpoint. For more information, see "[AUTOTITLE](/rest/enterprise-admin#get-github-advanced-security-active-committers-for-an-enterprise)" in the {% data variables.product.prodname_dotcom %} REST API documentation.
|