Skip to content

Commit dec1018

Browse files
authored
Merge pull request #46087 from github/repo-sync
Repo sync
2 parents 2494c72 + 396f518 commit dec1018

10 files changed

Lines changed: 154 additions & 43 deletions

File tree

‎content/code-security/how-tos/manage-security-alerts/remediate-alerts-at-scale/creating-managing-security-campaigns.md‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Security campaigns are created and managed from the **{% data variables.product.
2525

2626
You choose the alerts that you want to include in the campaign by using either:
2727

28-
* **Campaign templates**: Campaign templates contain filters for the most common alert selections. {% ifversion security-campaigns-autofix %}For code campaigns, they also all include the requirement that {% data variables.copilot.copilot_autofix %} is supported for all the alert types included (that is, `autofix:supported`).{% endif %}
28+
* **Campaign templates**: Campaign templates contain filters for the most common alert selections. {% ifversion security-campaigns-autofix %}When agentic autofix is disabled, they also use `autofix:supported` to include only alerts for rules supported by {% data variables.copilot.copilot_autofix %}.{% endif %}
2929
* **Custom filters**: Creating a campaign using custom filters lets you define your own criteria for selecting alerts for the campaign, and lets you tailor your campaign to your organization's specific needs.
3030

3131
{% data reusables.code-scanning.campaigns-api %}
@@ -74,7 +74,11 @@ All the template filters use `is:open` to include only alerts that need to be re
7474
Additional default filters for {% data variables.product.prodname_code_scanning %} alerts:
7575

7676
* `autofilter:true` includes only alerts that appear to be in application code. {% ifversion security-campaigns-autofix %}
77-
* `autofix:supported` includes only alerts that are for rules that are supported for {% data variables.copilot.copilot_autofix %}.{% endif %}
77+
78+
> [!NOTE]
79+
> When agentic autofix is enabled for your organization or enterprise, the `autofix` filter is unavailable, and adding `autofix:supported` does not change the results. For alerts in repositories where {% data variables.copilot.copilot_cloud_agent %} and {% data variables.copilot.copilot_autofix_short %} are available, you can use **Assign to {% data variables.product.prodname_copilot_short %}** for any {% data variables.product.prodname_code_scanning %} alert in a campaign.
80+
81+
{% endif %}
7882

7983
For more information about filtering alerts, see [AUTOTITLE](/code-security/tutorials/secure-your-organization/best-practice-fix-alerts-at-scale#2-select-alerts-for-your-campaign) and [AUTOTITLE](/code-security/how-tos/manage-security-alerts/remediate-alerts-at-scale/filtering-alerts-in-security-overview).
8084

@@ -84,11 +88,11 @@ For more information about filtering alerts, see [AUTOTITLE](/code-security/tuto
8488

8589
{% endif %}
8690

87-
In addition to the core filters, you will usually want to add a filter to limit results to a specific rule name, severity, or tag.
91+
Use `autofilter:true` with `rule:`, `tag:`, or `severity:` to scope your campaign.
8892

89-
* `is:open autofilter:true {% ifversion security-campaigns-autofix %}autofix:supported {% endif %}rule:java/log-injection` to show only alerts for log injection in Java code. See [AUTOTITLE](/code-security/reference/code-scanning/codeql/codeql-queries).
90-
* `is:open autofilter:true {% ifversion security-campaigns-autofix %}autofix:supported {% endif %}tag:external/cwe/cwe-117` to show only alerts for "CWE 117: Improper Output Neutralization for Logs". This includes log injection in Java and other languages.
91-
* `is:open autofilter:true {% ifversion security-campaigns-autofix %}autofix:supported {% endif %}severity:critical` to show only alerts with a security severity of critical.
93+
* `is:open autofilter:true rule:java/log-injection` to show only alerts for log injection in Java code. See [AUTOTITLE](/code-security/reference/code-scanning/codeql/codeql-queries).
94+
* `is:open autofilter:true tag:external/cwe/cwe-117` to show only alerts for "CWE 117: Improper Output Neutralization for Logs". This includes log injection in Java and other languages.
95+
* `is:open autofilter:true severity:critical` to show only alerts with a security severity of critical.
9296

9397
{% ifversion security-campaigns-secrets %}
9498

‎content/code-security/reference/security-at-scale/overview-dashboard-filters.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ You can click any result to see full details of the relevant query and the line
227227

228228
| Qualifier | Description |
229229
| -------- | -------- |
230+
|`autofilter`|Display only alerts that appear to be in application code (`autofilter:true`).|
231+
|{% ifversion code-scanning-autofix %}|
232+
|`autofix`|Display only alerts for rules supported by {% data variables.copilot.copilot_autofix %} (`autofix:supported`). When agentic autofix is enabled for your organization or enterprise, this filter is unavailable and does not affect results.|
233+
|{% endif %}|
230234
|`is`|Display {% data variables.product.prodname_code_scanning %} alerts that are open (`open`) or closed (`closed`).|
231235
|`resolution`| Display {% data variables.product.prodname_code_scanning %} alerts closed as "false positive" (`false-positive`), "fixed" (`fixed`), "used in tests" (`used-in-tests`), or "won't fix" (`wont-fix`).|
232236
|`rule`|Display {% data variables.product.prodname_code_scanning %} alerts identified by the specified rule.|

‎content/copilot/concepts/agents/about-third-party-coding-agents.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following third-party agents are supported on {% data variables.product.gith
4949

5050
When starting a task with a third-party agent, you can select the AI model used by the agent. You may find that different models perform better, or provide more useful responses, depending on the type of task. For help deciding which model to use, see [AUTOTITLE](/copilot/reference/ai-models/model-comparison).
5151

52-
You can also select **Auto**, which allows {% data variables.copilot.copilot_auto_model_selection %} to choose the best available model on your behalf. See [AUTOTITLE](/copilot/concepts/models/auto-model-selection).
52+
You can also select **Auto**, which chooses between the supported models below. Choosing **Auto** with third-party agents does **not** leverage {% data variables.copilot.copilot_auto_model_selection %}. See [AUTOTITLE](/copilot/concepts/models/auto-model-selection).
5353

5454
The following models are available for each agent:
5555

‎content/copilot/concepts/agents/anthropic-claude.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ When starting a task with the {% data variables.product.prodname_anthropic_claud
2727
* Auto
2828
{% data reusables.copilot.anthropic-claude-agent-models %}
2929

30-
If you select **Auto**, {% data variables.copilot.copilot_auto_model_selection %} will select the best model based on availability and to help reduce rate limiting. For more information, see [AUTOTITLE](/copilot/concepts/models/auto-model-selection).
30+
If you select **Auto**, it will choose one of the available models listed above. **Auto** in {% data variables.product.prodname_anthropic_claude %} coding agent does **not** leverage {% data variables.copilot.copilot_auto_model_selection %}.

‎content/copilot/concepts/agents/openai-codex.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ When starting a task with the {% data variables.product.prodname_openai_codex %}
3030
* Auto
3131
{% data reusables.copilot.openai-codex-agent-models %}
3232

33-
If you select **Auto**, {% data variables.copilot.copilot_auto_model_selection %} will select the best model based on availability and to help reduce rate limiting. For more information, see [AUTOTITLE](/copilot/concepts/models/auto-model-selection).
33+
If you select **Auto**, it will choose one of the available models listed above. **Auto** in {% data variables.product.prodname_openai_codex %} coding agent does **not** leverage {% data variables.copilot.copilot_auto_model_selection %}.
3434

3535
## {% data variables.product.prodname_vscode_shortname %} extension
3636

‎content/copilot/concepts/models/auto-model-selection.md‎

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ More than just a model picker, {% data variables.copilot.copilot_auto_model_sele
1919

2020
### Auto with task optimization
2121

22-
> [!NOTE] {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} with task optimization is generally available in {% data variables.copilot.copilot_chat_short %} on the {% data variables.product.github %} website, in {% data variables.product.prodname_vscode_shortname %}, in {% data variables.copilot.copilot_cli_short %}, and in {% data variables.copilot.github_copilot_app %}.
22+
> [!NOTE] {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} with task optimization is generally available in {% data variables.copilot.copilot_chat_short %} on the {% data variables.product.github %} website, in {% data variables.product.prodname_vscode_shortname %}, in {% data variables.copilot.copilot_cli_short %}, in {% data variables.copilot.github_copilot_app %}, and in JetBrains IDEs.
2323
2424
{% data variables.copilot.copilot_auto_model_selection_short_cap_a %} with task optimization combines two systems to provide high quality results and better reliability. One system tracks real-time system health and availability, while the other evaluates task complexity. Putting these together, {% data variables.copilot.copilot_auto_model_selection_short %} routes the task to the optimal model.
2525

26-
Routing occurs along natural cache boundaries to avoid additional cache related costs. Switching models mid-session has shown increased cost without ample improvements in quality.
26+
Routing occurs along natural cache boundaries and large drifts in conversation complexity to avoid additional cache related costs without quality improvements.
27+
2728
This helps you get more value from {% data variables.product.prodname_copilot_short %} since it matches each task to the model that can solve it most efficiently. That means reserving higher-cost reasoning models for problems that truly need it, while routing straightforward tasks to faster, lower-cost models that still deliver great results.
2829

2930
Benefits of using {% data variables.copilot.copilot_auto_model_selection_short %} include:
@@ -87,38 +88,17 @@ When you select **Auto**, {% data variables.copilot.copilot_auto_model_selection
8788
8889
> [!TIP]
8990
> You can see which model was used for each {% data variables.product.prodname_copilot_short %} response.
90-
> * In **{% data variables.copilot.copilot_chat_short %}**, hover over the response.
91+
> * In **{% data variables.copilot.copilot_chat_short %}** and **{% data variables.copilot.github_copilot_app %}**, hover over the response.
9192
> * In **{% data variables.copilot.copilot_cli_short %}**, the model used for each response displays in the terminal.
9293
> * In **{% data variables.copilot.copilot_cloud_agent %}**, the model used for each response displays at the end of the response.
93-
> * In **{% data variables.copilot.github_copilot_app %}**, the model used for each response is shown by the model picker next to **Auto**.
9494
9595
### {% data variables.copilot.copilot_chat_short %} in IDEs
9696

9797
{% data variables.copilot.copilot_auto_model_selection_short_cap_a %}, with task optimization, is generally available in the following IDEs:
9898
* {% data variables.product.prodname_vscode_shortname %}
99+
* JetBrains IDEs
99100

100101
{% data variables.copilot.copilot_auto_model_selection_short_cap_a %}, optimized for model reliability and availability, is generally available in the following IDEs:
101-
* JetBrains IDEs
102102
* Eclipse
103103
* Xcode
104104
* {% data variables.product.prodname_vs %}
105-
106-
## {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} in third-party agents
107-
108-
When you select **Auto** in the {% data variables.product.prodname_openai_codex %} or {% data variables.product.prodname_anthropic_claude %} coding agents, {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} chooses from the supported list of models, subject to your policies and subscription type.
109-
110-
### {% data variables.product.prodname_openai_codex %} supported models
111-
112-
These models are available for {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} in the {% data variables.product.prodname_openai_codex %} coding agent.
113-
114-
{% data reusables.copilot.openai-codex-agent-models %}
115-
116-
For more information, see [AUTOTITLE](/copilot/concepts/agents/openai-codex).
117-
118-
### {% data variables.product.prodname_anthropic_claude %} supported models
119-
120-
These models are available for {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} in the {% data variables.product.prodname_anthropic_claude %} coding agent.
121-
122-
{% data reusables.copilot.anthropic-claude-agent-models %}
123-
124-
For more information, see [AUTOTITLE](/copilot/concepts/agents/anthropic-claude).

‎content/copilot/tutorials/optimize-ai-usage.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ See [AUTOTITLE](/copilot/reference/ai-models/supported-models#models-with-extend
4343

4444
A small router looks at your prompt and sends it to the model that can **handle it most efficiently**, reserving expensive reasoning models for complex problems. It also avoids models that burn through a token budget quickly.
4545

46-
{% data variables.copilot.copilot_auto_model_selection_short_cap_a %} also **protects your cache**. It only changes models at natural cache boundaries, when a new session starts or after you run `/compact`, never mid-task. To understand more about why this matters, see [4. Preserve the cache](#4-preserve-the-cache).
46+
{% data variables.copilot.copilot_auto_model_selection_short_cap_a %} also **protects your cache**. It changes models at natural cache boundaries, when a new session starts or after you run `/compact`. As conversations evolve, it will re-route at points where quality improvements outweigh cache loss. To understand more about why this matters, see [4. Preserve the cache](#4-preserve-the-cache).
4747

4848
{% data variables.copilot.copilot_auto_model_selection_short_cap_a %} also routes around degraded or busy models, so you hit fewer rate limits and errors.
4949

@@ -198,4 +198,4 @@ Teams that invest in these guardrails see fewer retries, faster task completion,
198198
Monitor and manage your spending to get the most out of your {% data variables.product.prodname_ai_credits_short %}:
199199

200200
* **Use your dashboard and budget controls**. The "AI usage" page, under https://github.com/settings/billing, breaks down consumption across every feature and model, so you can see where your credits are actually going and adjust accordingly. See [AUTOTITLE](/copilot/how-tos/manage-and-track-spending/monitor-ai-usage).
201-
* **Upgrade for a larger allowance**. If you regularly approach your monthly limit, a higher plan may be more economical than paying for additional usage, as higher plans have more {% data variables.product.prodname_ai_credit_singular %} allowance. See [AUTOTITLE](/copilot/get-started/plans#github-ai-credits-allowance-by-plan) and [AUTOTITLE](/copilot/how-tos/manage-your-account/view-and-change-your-copilot-plan).
201+
* **Upgrade for a larger allowance**. If you regularly approach your monthly limit, a higher plan may be more economical than paying for additional usage, as higher plans have more {% data variables.product.prodname_ai_credit_singular %} allowance. See [AUTOTITLE](/copilot/get-started/plans#github-ai-credits-allowance-by-plan) and [AUTOTITLE](/copilot/how-tos/manage-your-account/view-and-change-your-copilot-plan).

‎data/tables/copilot/auto-model-selection.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@
5656
cli: true
5757
app: true
5858

59+
- name: GPT-6 Luna
60+
cloud_agent: true
61+
chat: true
62+
cli: true
63+
app: true
64+
65+
- name: GPT-6 Sol
66+
cloud_agent: true
67+
chat: true
68+
cli: true
69+
app: true
70+
5971
# Anthropic
6072
- name: Claude Haiku 4.5
6173
cloud_agent: true
@@ -75,6 +87,12 @@
7587
cli: true
7688
app: true
7789

90+
- name: Claude Opus 5.5
91+
cloud_agent: true
92+
chat: true
93+
cli: true
94+
app: true
95+
7896
- name: Claude Sonnet 4.6
7997
cloud_agent: false
8098
chat: true

0 commit comments

Comments
 (0)