Where to find billing and license details
As an enterprise administrator, view billing and licensing information from the Enterprise (or Organization) settings in GitHub. The Licensing tab displays:- Total licenses consumed and any recent changes (for example: a count dropping from three to two after removing a user).
- An estimated monthly cost for consumed licenses.
- Advanced Security usage summarized separately (Code Security and Secret Protection).
Advanced Security: what to audit
Advanced Security usage is split into two reports that you should review:- Secret Protection — lists users who triggered or used Secret Scanning / Secret Protection, including the organization and repository where it occurred and the last-used timestamp.
- Code Security — lists users who used CodeQL/code scanning features, with repository context and last-used timestamp.
Downloading and analyzing the CSV reports
- From the Enterprise Licensing tab, download the Enterprise Cloud CSV report. This includes all users in the enterprise and fields such as:
- Enterprise role
- Organization-level role
- Two-factor authentication requirement date
- Whether Advanced Security features are assigned (Code Security / Secret Protection)
- Download the Advanced Security reports:
- Secret Protection report
- Code Security report
- Open each CSV in a spreadsheet application (Excel, Google Sheets, etc.) and inspect the following fields to assess usage and recency:
last_pushedor last pushed date (committer activity)- Advanced Security last-used timestamps (from Code Security and Secret Protection reports)
- Organization and repository where the feature was used

Quick checklist when inspecting CSV data
- Confirm the
last pusheddates for users assigned Advanced Security licenses. - Cross-reference the Code Security and Secret Protection last-used timestamps.
- Note the repository and organization context to verify whether the activity is relevant to the license assignment.
Report summary
Recommended workflow to optimize licenses
- Download the Enterprise Cloud CSV to get the list of assigned licenses and user roles.
- Download the Advanced Security reports (Secret Protection and Code Security) to obtain last-used timestamps and repository context.
- Cross-reference
last pushed(or other commit activity) with Advanced Security last-used dates. - Identify users with licenses who haven’t pushed or used Advanced Security features recently.
- Verify inactivity with team leads, onboarding/offboarding logs, or by contacting the user directly.
- Reclaim licenses from confirmed inactive users and reassign them to active contributors who need Advanced Security features.
Always correlate “last pushed” or “last used” dates with your team’s onboarding/offboarding records and direct confirmations before removing licenses. Notify the user or their manager to confirm inactivity to avoid disrupting active work.
Links and references
- GitHub Enterprise settings and licensing documentation
- Advanced Security (Code scanning and Secret Scanning) documentation
- GitHub CSV export and reporting guides