Exploring GitHub Code Quality results in your organization

Use the organization-level Code Quality dashboard to spot repositories that need attention and track your organization's code health at a glance.

Prerequisites

Viewing code quality insights for your organization

The organization-level dashboard has two tabs:

  1. On GitHub, navigate to the main page of your organization. For example, from https://github.com/settings/organizations.
  2. Under your organization name, click the Security and quality tab.
  3. In the "Insights" section of the sidebar, click Code quality.

Note

What you see on the dashboard depends on your access:

Filtering dashboard data

A filter bar at the top of the dashboard applies to both the Health and Trends tabs. You can filter by:

You can also sort the dashboard data using the Sort control in the same filter bar.

Viewing current code health

The Health tab shows a snapshot of your organization's code health right now.

Interpreting the score distribution chart

The score distribution chart provides a visual overview of the code health of your organization. Each bubble represents a collection of repositories with the same maintainability and reliability scores.

To view the maintainability score, reliability score, and number of repositories represented by a particular bubble, hover over the bubble.

Exploring the repository table

Below the bubble chart, there is a table that lists all repositories in your organization. Here, you can view code quality findings, along with more detailed information about those findings.

You can sort the repository table in ascending or descending order for any column by clicking the column header.

Investigating low-scoring repositories

  1. To filter the dashboard data for the lowest-performing repositories, on the score distribution chart, click the bubble with the lowest combined scores.
  2. Scroll down to the repository table. By default, the table is sorted from most to least recent repository scan, helping you prioritize current quality issues.
  3. Optionally, to prioritize repositories with the highest number of CodeQL findings, click Standard findings twice.
  4. To view the repository-level dashboard for a specific repository, click the repository's name.

The Trends tab shows how open findings across repositories that you have access to and that match the current filters have changed over time, so you can tell whether your code quality work is having an effect and where to focus attention next.

  1. On the organization-level dashboard, click the Trends tab.
  2. Use the Period dropdown to select a time range: the last 7, 14, or 30 days.
  3. Review the "Open findings over time" graph, which shows the total number of open findings across applicable repositories for the selected period.
  4. Optionally, use the buttons above the graph to group the data by Health score or Severity.
  5. Hover over a point on the graph to see the open finding count for that day.

Keep the following in mind when you interpret the graph:

Identifying repositories that need attention

Below the trends graph, two tables help you identify which repositories need attention over the selected time period:

Both tables include the following columns:

The number of findings for a repository is affected by findings being fixed and dismissed. You can use the repository-level dashboard to confirm what changed.

To investigate a repository, click its name to open its repository-level Code Quality dashboard, where you can review individual findings and take remediation action.

Next steps

To understand the code health information available on the repository-level dashboard, see Interpreting the code quality results for your repository.

If you're planning to enable Code Quality across many repositories, see Rolling out GitHub Code Quality at scale.