You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f117f6
Browse filesBrowse the repository at this point in the historyBrowse files
Add a driver journey landing page for Code Quality (#62542)
Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
Copilot-Session: d7978248-7b32-4acd-85e2-c89aa908656c
Copilot-Session: ea8e7006-076c-4e98-9e5a-0ea41e475767
Copilot-Session: 7bed5438-5c04-44d1-8ee9-b25e63bd7ad3
Copy file name to clipboardExpand all lines: content/code-security/concepts/code-quality/code-quality.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,3 @@ For more information, see [AUTOTITLE](/billing/concepts/product-billing/github-c
59
59
{% data reusables.code-quality.codeql-supported-languages %}
60
60
61
61
It also performs AI-powered analysis on pull requests and on your repository's recently changed code, including languages beyond those supported by rule-based queries.
62
-
63
-
## Next steps
64
-
65
-
***For your enterprise:** Ensure repositories in your enterprise can enable {% data variables.product.prodname_code_quality_short %}. See [AUTOTITLE](/code-security/how-tos/secure-at-scale/configure-enterprise-security/configure-specific-tools/allow-github-code-quality-in-enterprise?utm_campaign=code-quality-ga-july-2026&utm_medium=docs&utm_source=docs-cq-intro-enable-cq-enterprise).
66
-
***For your repository or organization:** Turn on {% data variables.product.prodname_code_quality_short %} to start generating results. See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/enable-code-quality?utm_campaign=code-quality-ga-july-2026&utm_medium=docs&utm_source=docs-cq-intro-enable-cq-repo).
67
-
***On your pull request:** Learn how to fix code quality findings on your pull request. See [AUTOTITLE](/code-security/tutorials/improve-code-quality/catch-issues-before-merge?utm_campaign=code-quality-ga-july-2026&utm_medium=docs&utm_source=docs-cq-intro-fix-on-pr).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/maintain-quality-code/enable-code-quality.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,3 @@ For the available access options, and how filtering and enforcement work, see [A
56
56
Your changes are saved automatically and begin to propagate immediately. In large organizations, it can take several minutes for the changes to apply across all repositories.
57
57
58
58
If you're rolling out the feature across many teams, we recommend you pilot on a small group and tune your quality thresholds before you enable everywhere. See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/roll-out-at-scale).
59
-
60
-
## Next steps
61
-
62
-
***Add code coverage:** Upload reported code coverage from your test suite to see coverage results directly on pull requests. {% data reusables.code-quality.workflow-generation %}
63
-
***For your organization:** Understand the code health of your repositories at a glance. See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/explore-code-quality).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/maintain-quality-code/explore-code-quality.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Exploring GitHub Code Quality results in your organization
3
3
shortTitle: Explore code quality
4
-
intro: Understand your organization's code health at a glance with the organization-level dashboard for {% data variables.product.prodname_code_quality_short %}.
4
+
intro: Use the organization-level {% data variables.product.prodname_code_quality_short %} dashboard to spot repositories that need attention and track your organization's code health at a glance.
5
5
product: '{% data reusables.gated-features.code-quality-availability %}'
6
6
permissions: Organization members
7
7
audience:
@@ -52,7 +52,3 @@ You can sort the repository table in ascending or descending order for any colum
52
52
1. 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.
53
53
1. Optionally, to prioritize repositories with the highest number of {% data variables.product.prodname_codeql %} findings, click **Standard Findings** twice.
54
54
1. To view the repository-level dashboard for a specific repository, click the repository's name.
55
-
56
-
## Next steps
57
-
58
-
To understand the code health information available on the repository-level dashboard, see [AUTOTITLE](/code-security/how-tos/maintain-quality-code/interpret-results).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/maintain-quality-code/interpret-results.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Interpreting the code quality results for your repository
3
3
shortTitle: Interpret results
4
4
allowTitleToDifferFromFilename: true
5
-
intro: Understand the maintainability and reliability of your codebase so you can prioritize where your teams focus remediation effort.
5
+
intro: Use {% data variables.product.prodname_code_quality_short %} results to assess the maintainability and reliability of your codebase, so your teams can focus remediation where it matters most.
6
6
versions:
7
7
feature: code-quality
8
8
product: '{% data reusables.gated-features.code-quality-availability %}'
@@ -53,8 +53,3 @@ Code quality results should always be interpreted in the context of your reposit
53
53
* Large repositories with a lot of code in a fully supported language often have many results even if the majority of the code has good maintainability and reliability standards.
54
54
55
55
To learn more about the metrics and how the scores are calculated, see [AUTOTITLE](/code-security/reference/code-quality/metrics-and-ratings).
56
-
57
-
## Next steps
58
-
59
-
* Remediate quality findings in your default branch and improve the maintainability and reliability score for your repository. See [AUTOTITLE](/code-security/tutorials/improve-code-quality/raise-your-quality-rating).
60
-
* Stop your repository from accumulating more code quality problems by setting a quality threshold for pull requests using rulesets. See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/set-pr-thresholds).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/maintain-quality-code/roll-out-at-scale.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,3 @@ If you need automation around your rollout, you can fetch {% data variables.prod
75
75
Enabling {% data variables.product.prodname_code_quality_short %} does not automatically turn on code coverage. Coverage is opt-in per repository, and it starts reporting only after a workflow that uploads coverage data is added to the repository. This means teams can adopt {% data variables.product.prodname_code_quality_short %} first and add coverage later.
76
76
77
77
To set up coverage for a repository, see [AUTOTITLE](/code-security/how-tos/maintain-quality-code/set-up-code-coverage).
78
-
79
-
## Next steps
80
-
81
-
Now that you've rolled out {% data variables.product.prodname_code_quality_short %} across your organization, you can assess the health of your repositories at a glance and decide where to focus. See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/explore-code-quality).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/maintain-quality-code/set-pr-thresholds.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Setting code quality thresholds for pull requests
3
3
shortTitle: Set quality thresholds
4
-
intro: Enforce your code quality standards automatically by blocking pull requests that fall below the thresholds you set, at the repository or organization level.
4
+
intro: Keep low-quality changes out of your codebase by using {% data variables.product.prodname_code_quality_short %} thresholds to block pull requests that don't meet your standards.
5
5
allowTitleToDifferFromFilename: true
6
6
versions:
7
7
feature: code-quality
@@ -51,7 +51,7 @@ The following steps create or update a ruleset at the repository level. To enfor
51
51
1. If you don't already have a ruleset to protect your default branch, expand **New ruleset** and click **New branch ruleset**. Alternatively, open your existing ruleset for the default branch and move to step 5.
52
52
1. If you are creating a new ruleset:
53
53
* Define a name for the ruleset.
54
-
* Set the "Enforcement status" to "Active."
54
+
* Set the "Enforcement status" to "Evaluate" while you calibrate the threshold during a pilot. If you want to enforce the threshold immediately, select "Active."
55
55
* Under "Target branches" add a target of "Include default branch."
56
56
1. Under "Branch rules", enable "Require code quality results".
57
57
1. Set "Severity" to define the lowest severity of code quality results that must be resolved before a pull request can be merged into the default branch. For example:
@@ -61,10 +61,8 @@ The following steps create or update a ruleset at the repository level. To enfor
61
61
* Set "All" to block pull requests with **any** unresolved code quality results being merged.
62
62
1. When you have finished defining or editing the ruleset, click **Create** or **Save changes**.
63
63
64
+
If you selected "Evaluate", review the ruleset insights to see which pull requests would have been blocked. When the results match the quality bar you want, change the enforcement status to "Active."
65
+
64
66
## Setting a code coverage threshold
65
67
66
68
You can also block pull requests that fall below a code coverage threshold. This uses a separate **Restrict code coverage** rule, not the **Require code quality results** rule used above, and your repository must upload code coverage data first. For the full procedure, see [AUTOTITLE](/code-security/how-tos/maintain-quality-code/restrict-code-coverage).
67
-
68
-
## Next steps
69
-
70
-
Learn how {% data variables.product.prodname_code_quality %} works on pull requests to prevent code quality issues from reaching your default branch. See [AUTOTITLE](/code-security/tutorials/improve-code-quality/catch-issues-before-merge).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/maintain-quality-code/set-up-code-coverage.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Setting up code coverage for your repository
3
3
shortTitle: Set up code coverage
4
-
intro: 'Give your teams visibility into code coverage directly on pull requests, without paying for or maintaining a separate third-party coverage service.'
4
+
intro: 'Use built-in code coverage from {% data variables.product.prodname_code_quality_short %} to find untested code on pull requests, without paying for or maintaining a separate third-party service.'
5
5
versions:
6
6
feature: code-quality
7
7
product: '{% data reusables.gated-features.code-quality-availability %}'
@@ -163,8 +163,3 @@ jobs:
163
163
1. After the workflow completes, look for a comment from `{% data variables.code-quality.pr_commenter %}` on the pull request. The comment includes:
164
164
* The aggregate coverage percentage for the pull request branch compared to the default branch.
165
165
* A per-file breakdown showing which files gained or lost coverage.
166
-
167
-
## Next steps
168
-
169
-
* **Interpret results:** Understand coverage metrics and per-file breakdowns on your pull requests. See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/interpret-results).
170
-
* **Enforce coverage thresholds:** Block pull requests that don't meet a minimum coverage percentage or that cause coverage to drop. See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/restrict-code-coverage).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/maintain-quality-code/view-and-manage-cost.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,3 @@ Be aware of two limits so there are no surprises:
74
74
75
75
***You can't pre-estimate spend** before you enable {% data variables.product.prodname_code_quality_short %}. Usage depends on your committers, scan frequency, and findings, so plan to watch actuals after you turn it on rather than forecast them precisely.
76
76
***You can't turn off the in-pull-request AI features.** {% data variables.product.prodname_code_quality_short %} generates a fix for every detected finding, so {% data variables.product.prodname_ai_credits_short %} usage is inherent to running it. To stop that usage entirely, disable {% data variables.product.prodname_code_quality_short %} on the repository.
77
-
78
-
## Next steps
79
-
80
-
***Roll out across your organization.** See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/roll-out-at-scale).
81
-
***Assess health across your organization.** See [AUTOTITLE](/code-security/how-tos/maintain-quality-code/explore-code-quality).
Copy file name to clipboardExpand all lines: content/code-security/how-tos/secure-at-scale/configure-enterprise-security/configure-specific-tools/allow-github-code-quality-in-enterprise.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Allowing use of {% data variables.product.prodname_code_quality %} in your enterprise
3
3
shortTitle: Allow {% data variables.product.prodname_code_quality_short %}
4
-
intro: Control {% data variables.product.prodname_code_quality_short %} enablement for your repositories by defining policies.
4
+
intro: Set enterprise policies for {% data variables.product.prodname_code_quality_short %} to give organizations access while keeping repository enablement under your control.
5
5
versions:
6
6
feature: code-quality
7
7
product: '{% data reusables.gated-features.code-quality-availability %}'
@@ -17,8 +17,7 @@ category:
17
17
---
18
18
19
19
> [!NOTE]
20
-
> * {% data variables.product.prodname_code_quality %} is currently in {% data variables.release-phases.public_preview %} and subject to change. During {% data variables.release-phases.public_preview %}, {% data variables.product.prodname_code_quality_short %} will not be billed, although {% data variables.product.prodname_code_quality_short %} scans will consume {% data variables.product.prodname_actions %} minutes.
21
-
> * Previously, {% data variables.product.prodname_AS %} policies also controlled access to {% data variables.product.prodname_code_quality_short %}. Those existing policy settings are automatically applied to the standalone {% data variables.product.prodname_code_quality_short %} policies.
20
+
> Previously, {% data variables.product.prodname_AS %} policies also controlled access to {% data variables.product.prodname_code_quality_short %}. Those existing policy settings are automatically applied to the standalone {% data variables.product.prodname_code_quality_short %} policies.
22
21
23
22
1. Navigate to your enterprise. For example, from [https://github.com/settings/enterprises](https://github.com/settings/enterprises?ref_product=ghec&ref_type=engagement&ref_style=text).
24
23
{% data reusables.enterprise-accounts.policies-tab %}
0 commit comments