Skip to main content
In this lesson you’ll learn how to view GitHub Actions and GitHub Advanced Security (GHAS) usage metrics at the enterprise level. As an enterprise owner or administrator, you need clear visibility into how organizations and teams adopt and operate Actions and GHAS features. You can access that information from the enterprise account UI and via the GitHub REST API.

Security & quality overview

Open your enterprise account and select the Security and quality tab to see a consolidated overview of alerts and insights across the enterprise. The overview highlights trends such as detection rates, remediations, and prevention metrics. Switch to the Detections view for detailed information including:
  • Average age of open alerts
  • Number of secrets bypassed
  • Top repositories by alert count
  • Static analysis findings (e.g., missing rate limiting)
  • CWE IDs, alert counts, and severity levels
Clicking a repository in the list navigates directly to that repository’s alert page so you can triage issues quickly.
A dark-themed GitHub "Security and quality" → "Code scanning" page showing a list of code scanning alerts (e.g., "Uncontrolled data used in path expression," "Missing rate limiting," and several "Workflow does not contain permissions") with severity tags and navigation/sidebar items. The screenshot appears to be from the game-devstudio/ghas-guardrail-demo repository.

Coverage (Dependabot, Code scanning, Secret scanning)

The Coverage tab summarizes adoption of the three core GHAS features: Dependabot, Code Scanning, and Secret Scanning. For each repository the dashboard reports whether alerts, pull request alerts, push protection, or Dependabot security updates are enabled. Example: five repositories are shown; all have code scanning and secret scanning enabled, but only one has Dependabot security updates active. Use the repository filter to find repositories with specific protections enabled or disabled. Filter examples:
  • Find repos with Dependabot security updates enabled: archived:false dependabot-security-updates:enabled
  • Find repos with Dependabot security updates disabled: dependabot-security-updates:disabled
A dark-themed GitHub Security Coverage dashboard showing boxes for Dependabot, Code scanning, and Secret scanning with progress bars and status details. Below it is a list of repositories with their respective security tool coverage and update timestamps.
Quick reference — GHAS coverage

Actions usage metrics (Insights)

To monitor GitHub Actions usage across your enterprise, open the Insights tab and inspect the Actions usage metrics. This dashboard aggregates data such as minutes used, job runs, workflows, runner types, and runtime OS across organizations and repositories. Use filters to focus on a specific organization, repository, OS (Linux, Windows, macOS), or runner type (GitHub-hosted or self-hosted). The dashboard provides performance metrics for workflows, including:
  • Average runtime
  • Average queue time
  • Job failure rate
  • Failed-job usage
These metrics help identify slow or failing workflows and optimize CI/CD costs and performance.
A screenshot of the GitHub "Actions Usage Metrics" dashboard showing totals (78 minutes, 55 job runs) and a table of workflows with their source repositories, total minutes, runs, runner types, and runtime OS. The left sidebar shows other Insights options like Copilot impact and usage.
Below is the Actions performance metrics panel example showing average job run time, queue time, failure rate, and failed-job usage per workflow:
A dark-mode screenshot of a GitHub Enterprise "NextGen Gaming" Insights → Actions Performance Metrics page, showing metrics like avg job run time (53s), avg queue time (4s), job failure rate (4%), and failed job usage. The main panel also lists workflows, their repositories, avg run times and failure percentages.
Actions metrics — common fields

Using the REST API to measure Actions adoption

For automation or large-scale audits, use the GitHub REST API to check whether repositories contain a .github/workflows directory. This is a practical heuristic to estimate Actions adoption (presence of workflows), but it does not guarantee active usage or recent runs. Warning about tokens and permissions:
Do not hard-code Personal Access Tokens (PATs) in scripts or share them. Use environment variables or a secrets manager and grant the token the minimum scopes required (for private repos typically repo or repo:status). See GitHub’s PAT documentation for best practices: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
Here is a compact bash script you can save as github_actions_adoption.sh. It:
  1. Fetches up to 100 repositories for an organization
  2. Checks for the existence of .github/workflows
  3. Counts adopted repositories and prints a summary percentage
Requirements: curl and jq installed. Run with TOKEN and ORG provided in the environment.
This script uses a simple adoption heuristic—checking for the .github/workflows directory. To measure active usage more accurately, extend the script to inspect YAML files inside that directory or query workflow runs via the Actions API: https://docs.github.com/en/rest/actions
Example console run (sanitized):

Summary and best practices

  • Use Security and quality → Coverage to monitor GHAS feature adoption (Dependabot, Code Scanning, Secret Scanning) across repositories.
  • Use Insights → Actions to analyze Actions usage, runtime OS, runner types, and workflow performance metrics.
  • For automation or enterprise audits, combine the REST API with a script to estimate Actions adoption. If you need to track active usage, refine the heuristic by inspecting workflow YAMLs or querying workflow runs via the Actions API.
  • Securely store and manage tokens; follow least-privilege principles for access.
Links and references

Watch Video