Skip to content

Commit 109c5bb

Browse files
timrogersCopilotam-stead
authored
[2026-03-18] Repository admins can disable Copilot coding agent's validation tools, which are enabled by default (#60269)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com>
1 parent 9972ef4 commit 109c5bb

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

content/copilot/concepts/agents/coding-agent/about-coding-agent.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,12 @@ You can customize {% data variables.copilot.copilot_coding_agent %} in a number
133133

134134
Security is a fundamental consideration when you enable {% data variables.copilot.copilot_coding_agent %}, as with any other AI agent. {% data variables.copilot.copilot_coding_agent %} has a strong base of built-in security protections that you can supplement by following best practice guidance.
135135

136-
* **Validated for security issues**: {% data variables.product.prodname_copilot_short %} analyzes the code created by {% data variables.copilot.copilot_coding_agent %} for security issues and attempts to resolve them prior to completing the pull request. This reduces the likelihood of the code generated by {% data variables.copilot.copilot_coding_agent %} introducing problems such as hardcoded secrets, insecure dependencies, and other vulnerabilities. Details about the analysis performed and the actions taken by {% data variables.copilot.copilot_coding_agent %} can be reviewed in the session log. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/track-copilot-sessions).
136+
* **Validated for code quality and security issues**: {% data reusables.copilot.coding-agent-validation-tools-intro %}
137137
* **{% data variables.product.prodname_codeql %}** is used to identify code security issues.
138138
* Newly introduced dependencies are checked against the **{% data variables.product.prodname_advisory_database %}** for malware advisories, and for any CVSS-rated High or Critical vulnerabilities.
139139
* **{% data variables.product.prodname_secret_scanning_caps %}** is used to detect sensitive information such as API keys, tokens, and other secrets.
140+
* Details about the analysis performed and the actions taken by {% data variables.copilot.copilot_coding_agent %} can be reviewed in the session log. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/track-copilot-sessions).
141+
* Optionally, you can disable one or more of the code quality and security validation tools used by {% data variables.copilot.copilot_coding_agent %}. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/configuring-agent-settings).
140142
* {% data variables.copilot.copilot_coding_agent %}'s security validation **does not require** a {% data variables.product.prodname_GHAS_cs_or_sp %} license.
141143
* **Subject to existing governance**: Organization settings and enterprise policies control availability. Any security policies and practices set up for the organization also apply to {% data variables.copilot.copilot_coding_agent %}.
142144
* **Restricted development environment**: {% data variables.copilot.copilot_coding_agent %} works in a sandbox development environment with internet access controlled by a firewall. It has read-only access to the repository it's assigned to work in.

content/copilot/how-tos/use-copilot-agents/coding-agent/configuring-agent-settings.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,28 @@ category:
99
- Configure Copilot
1010
---
1111

12+
## Enabling or disabling built-in code quality and security validation tools
13+
14+
{% data reusables.copilot.coding-agent-validation-tools-intro %}
15+
16+
Optionally, you can choose to disable these tools to help {% data variables.product.prodname_copilot_short %} work faster or avoid conflicts with other code quality or security products you're using.
17+
18+
You must be a repository administrator to configure these settings.
19+
20+
{% data reusables.repositories.navigate-to-repo %}
21+
{% data reusables.repositories.sidebar-settings %}
22+
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **{% data variables.copilot.copilot_coding_agent_short_cap_c %}**.
23+
1. In the "Validation tools" section, toggle the tool, or tools, you want to enable or disable.
24+
1225
## Allowing {% data variables.product.prodname_actions %} workflows to run automatically when {% data variables.product.prodname_copilot_short %} pushes
1326

1427
{% data reusables.copilot.coding-agent-workflow-run-approval-default %}
1528

1629
> [!WARNING] Allowing {% data variables.product.prodname_actions %} workflows to run without approval may allow unreviewed code written by {% data variables.product.prodname_copilot_short %} to gain write access to your repository or access your {% data variables.product.prodname_actions %} secrets.
1730
31+
You must be a repository administrator to configure these settings.
32+
1833
{% data reusables.repositories.navigate-to-repo %}
1934
{% data reusables.repositories.sidebar-settings %}
2035
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **{% data variables.copilot.copilot_coding_agent_short %}**.
21-
1. In the "Actions workflow approval" section, disable the **Require approval for workflow runs** setting.
36+
1. In the "Actions workflow approval" section, disable the **Require approval for workflow runs** setting.

content/copilot/how-tos/use-copilot-agents/coding-agent/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ children:
2020
- /integrate-coding-agent-with-linear
2121
- /integrate-coding-agent-with-azure-boards
2222
- /changing-the-ai-model
23+
- /configuring-agent-settings
2324
- /customize-the-agent-environment
2425
- /customize-the-agent-firewall
2526
- /use-hooks
26-
- /configuring-agent-settings
2727
- /troubleshoot-coding-agent
2828
redirect_from:
2929
- /copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
By default, {% data variables.copilot.copilot_coding_agent %} checks code it generates for security issues and gets a second opinion on its code with {% data variables.copilot.copilot_code-review_short %}. It attempts to resolve issues identified prior to completing the pull request. This improves code quality and reduces the likelihood of the code generated by {% data variables.copilot.copilot_coding_agent %} introducing problems such as hardcoded secrets, insecure dependencies, and other vulnerabilities.

0 commit comments

Comments
 (0)