Skip to content

Commit abee681

Browse files
authored
Merge pull request #40222 from github/repo-sync
Repo sync
2 parents 14f3927 + c52b1b1 commit abee681

File tree

12 files changed

+130
-17
lines changed

12 files changed

+130
-17
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
title: generate overlay-changes
3+
intro: |
4+
[Plumbing] Generate a file that can be used for the
5+
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
6+
fpt: '*'
7+
ghec: '*'
8+
ghes: '*'
9+
topics:
10+
- Code Security
11+
- Code scanning
12+
- CodeQL
13+
type: reference
14+
product: '{% data reusables.gated-features.codeql %}'
15+
autogenerated: codeql-cli
16+
---
17+
18+
<!-- Content after this section is automatically generated -->
19+
20+
{% data reusables.codeql-cli.man-pages-version-note %}
21+
22+
## Synopsis
23+
24+
```shell copy
25+
codeql generate overlay-changes [--source-root=<dir>] [--output=<file>] <options>... -- <database>
26+
```
27+
28+
## Description
29+
30+
\[Plumbing] Generate a file that can be used for the
31+
`--overlay-changes` option to
32+
[codeql database create](/code-security/codeql-cli/codeql-cli-manual/database-create) when extracting an overlay database.
33+
34+
This command is intended to be used mostly for manual or automated
35+
testing. It is not particularly efficient. For production use, consider
36+
if the changes file can instead be derived from something like
37+
`git diff --name-only`.
38+
39+
## Options
40+
41+
### Primary Options
42+
43+
#### `<database>`
44+
45+
\[Mandatory] Path to the _base_ database into which the overlay will be
46+
extracted.
47+
48+
#### `-s, --source-root=<dir>`
49+
50+
The directory containing the source code to be extracted as an overlay.
51+
If not given, the current working directory is used.
52+
53+
#### `-o, --output=<file>`
54+
55+
The changes file will be written to this location. If it is not
56+
specified, the changes will be written to standard output.
57+
58+
### Common options
59+
60+
#### `-h, --help`
61+
62+
Show this help text.
63+
64+
#### `-J=<opt>`
65+
66+
\[Advanced] Give option to the JVM running the command.
67+
68+
(Beware that options containing spaces will not be handled correctly.)
69+
70+
#### `-v, --verbose`
71+
72+
Incrementally increase the number of progress messages printed.
73+
74+
#### `-q, --quiet`
75+
76+
Incrementally decrease the number of progress messages printed.
77+
78+
#### `--verbosity=<level>`
79+
80+
\[Advanced] Explicitly set the verbosity level to one of errors,
81+
warnings, progress, progress+, progress++, progress+++. Overrides `-v`
82+
and `-q`.
83+
84+
#### `--logdir=<dir>`
85+
86+
\[Advanced] Write detailed logs to one or more files in the given
87+
directory, with generated names that include timestamps and the name of
88+
the running subcommand.
89+
90+
(To write a log file with a name you have full control over, instead
91+
give `--log-to-stderr` and redirect stderr as desired.)
92+
93+
#### `--common-caches=<dir>`
94+
95+
\[Advanced] Controls the location of cached data on disk that will
96+
persist between several runs of the CLI, such as downloaded QL packs and
97+
compiled query plans. If not set explicitly, this defaults to a
98+
directory named `.codeql` in the user's home directory; it will be
99+
created if it doesn't already exist.
100+
101+
Available since `v2.15.2`.

content/code-security/codeql-cli/codeql-cli-manual/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ children:
5555
- /execute-upgrades
5656
- /generate-extensible-predicate-metadata
5757
- /generate-log-summary
58+
- /generate-overlay-changes
5859
- /generate-query-help
5960
- /github-merge-results
6061
- /github-upload-results

content/code-security/codeql-cli/codeql-cli-manual/resolve-languages.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ per-user configuration file).
6161

6262
(Note: On Windows the path separator is `;`).
6363

64+
#### `--[no-]filter-to-languages-with-queries`
65+
66+
List only languages that have default queries.
67+
68+
Available since `v2.23.0`.
69+
6470
#### `--format=<fmt>`
6571

6672
Select output format. Choices include:

content/code-security/codeql-cli/codeql-cli-manual/test-extract.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ redirect_from:
2727
## Synopsis
2828

2929
```shell copy
30-
codeql test extract [--source-root=<dir>] <options>... -- <testDirectory>
30+
codeql test extract [--print-database] [--source-root=<dir>] <options>... -- <testDirectory>
3131
```
3232

3333
## Description
@@ -52,6 +52,11 @@ Override the location of the database being created. By default it will
5252
be a subdirectory whose name is derived from the name of the test
5353
directory itself with '.testproj' appended.
5454

55+
#### `-D, --print-database`
56+
57+
Print the path to the database being created, rather than the dataset
58+
inside it.
59+
5560
#### `-s, --source-root=<dir>`
5661

5762
\[Advanced] The root source code directory, if different from the test

content/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-and-the-github-mcp-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Push protection prevents you from inadvertently exposing secrets, such as tokens
2121

2222
When you're interacting with the {% data variables.product.github %} MCP server, push protection blocks secrets in AI-generated responses as well as preventing secrets from being included in any actions you perform, such as creating an issue.
2323

24-
This protection is on by default for all interactions between the {% data variables.product.github %} MCP server and **public repositories** only, regardless of whether push protection is enabled on the repository's security settings page.
24+
This protection is on by default for all interactions between the {% data variables.product.github %} MCP server and **public repositories**; and between the {% data variables.product.github %} MCP server and private repositories covered by {% data variables.product.prodname_GHAS %}, regardless of whether push protection is enabled on the repository's security settings page.
2525

2626
## Resolving a block
2727

content/copilot/concepts/about-mcp.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ The {% data variables.product.github %} MCP server is a Model Context Protocol (
3131
* Automate and streamline code-related tasks.
3232
* Connect third-party tools (like Cursor, Windsurf, or future integrations) to leverage {% data variables.product.github %}’s context and AI capabilities.
3333
* Enable cloud-based workflows that work from any device, without local setup.
34+
* Invoke {% data variables.product.github %} tools, such as {% data variables.copilot.copilot_coding_agent %} (requires {% data variables.product.prodname_copilot %} subscription) and {% data variables.product.prodname_code_scanning %} (requires {% data variables.product.prodname_GHAS %} subscription), to assist with code generation and security analysis.
3435

35-
For public repositories, interactions with the {% data variables.product.github %} MCP server are secured by push protection, which blocks secrets from being included in AI-generated responses and prevents you from exposing secrets through any actions you perform using the server, such as creating an issue. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-and-the-github-mcp-server).
36+
For all public repositories, and private repositories covered by {% data variables.product.prodname_GHAS %}, interactions with the {% data variables.product.github %} MCP server are secured by push protection, which blocks secrets from being included in AI-generated responses and prevents you from exposing secrets through any actions you perform using the server, such as creating an issue. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-and-the-github-mcp-server).
3637

37-
You can access the {% data variables.product.github %} MCP server remotely through {% data variables.product.prodname_vscode %}, or other editors that support remote MCP; or you can run it locally in any MCP-compatible editor, allowing you to choose between the convenience of a hosted solution or the customizability of a self-hosted setup.
38+
You can access the {% data variables.product.github %} MCP server remotely through {% data variables.copilot.copilot_chat_short %} in {% data variables.product.github %}, {% data variables.product.prodname_vscode %}, or other editors that support remote MCP; or you can run it locally in any MCP-compatible editor, allowing you to choose between the convenience of a hosted solution or the customizability of a self-hosted setup.
3839

3940
If you want to utilize the remote {% data variables.product.github %} MCP server, you can do so in a few steps, without any local setup. This is particularly useful for users who want to quickly leverage {% data variables.product.github %}’s AI capabilities without the overhead of managing a local MCP server.
4041

@@ -46,7 +47,7 @@ To learn how to set up and use the {% data variables.product.github %} MCP serve
4647

4748
There is currently broad support for local MCP servers in clients such as {% data variables.product.prodname_vscode %}, JetBrains IDEs, XCode, and others.
4849

49-
Support for remote MCP servers is growing, with editors like {% data variables.product.prodname_vscode %} (with OAuth or PAT), {% data variables.product.prodname_vs %} (PAT only), JetBrains IDEs (PAT only), Xcode (PAT only), Eclipse (PAT only), Windsurf (PAT only), and Cursor (PAT only) already providing this functionality.
50+
Support for remote MCP servers is growing, with editors like {% data variables.product.prodname_vscode %}, {% data variables.product.prodname_vs %}, JetBrains IDEs, Xcode, Eclipse, and Cursor providing this functionality with OAuth or PAT, and Windsurf supporting PAT only.
5051

5152
To find out if your preferred editor supports remote MCP servers, check the documentation for your specific editor.
5253

content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Enterprise owners can define a policy for the whole enterprise, or delegate the
3232
* Click the **Models** tab to edit the policies that control availability of models beyond the basic models provided with {% data variables.product.prodname_copilot_short %}, which may incur additional costs.
3333
1. For each policy you want to configure, click the dropdown menu and select an enforcement option. Select **No policy** to delegate the decision to individual organization owners. For more information, see [AUTOTITLE](/copilot/reference/feature-availability-enterprise).
3434

35+
{% data reusables.copilot.mcp-servers-policy-note %}
36+
3537
## Opting in to previews or feedback
3638

3739
If your enterprise has a {% data variables.copilot.copilot_business_short %} or {% data variables.copilot.copilot_enterprise_short %} plan and you enable "{% data variables.product.prodname_copilot_short %} in {% data variables.product.prodname_dotcom_the_website %}" on the "Policies" tab, two additional options are displayed:

content/copilot/how-tos/provide-context/use-mcp/use-the-github-mcp-server.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ redirect_from:
1515
contentType: how-tos
1616
---
1717

18-
>[!NOTE]
19-
> * The remote {% data variables.product.github %} MCP server is currently in {% data variables.release-phases.public_preview %} and subject to change; use of the {% data variables.product.github %} MCP server locally is generally available (GA).
20-
> * MCP support is generally available (GA) in {% data variables.product.prodname_copilot_short %} for {% data variables.product.prodname_vscode %}, {% data variables.product.prodname_vs %}, JetBrains, Eclipse, and Xcode.
21-
> * The **MCP servers in {% data variables.product.prodname_copilot_short %}** policy for enterprises and organizations, disabled by default, controls the use of MCP.
22-
> * While in {% data variables.release-phases.public_preview %}, access to the remote {% data variables.product.github %} MCP server through OAuth in {% data variables.product.prodname_copilot_short %} is governed by the {% data variables.product.prodname_copilot_short %} **Editor preview features** policy at the organization or enterprise level. PAT access to the server is managed by PAT policies.
18+
The {% data variables.product.github %} MCP server is available to all {% data variables.product.github %} users regardless of plan type. However, specific tools within the MCP server inherit the same access requirements as their corresponding {% data variables.product.github %} features. If a feature requires a paid {% data variables.product.github %} or {% data variables.product.prodname_copilot_short %} license, the equivalent MCP tool will require the same subscription. For example, tools that interact with {% data variables.product.prodname_copilot_short %} Coding Agent require a paid {% data variables.product.prodname_copilot_short %} license.
2319

2420
{% vscode %}
2521

@@ -41,8 +37,7 @@ You can choose to set up the {% data variables.product.github %} MCP server eith
4137

4238
The remote {% data variables.product.github %} MCP server uses one-click OAuth authentication by default, but you can also manually configure it to use a {% data variables.product.pat_generic %} (PAT) for authentication. If you use OAuth, the MCP server can only access the scopes you approve during sign-in. In organization-owned contexts, access may also be limited by admin policies that control which scopes and apps are permitted. If you use a PAT, the MCP server will have access to the scopes granted by the PAT, which is also subject to any PAT restrictions configured by the organization.
4339

44-
> [!NOTE]
45-
> If you are an {% data variables.product.prodname_emu %}, then PAT is disabled by default, unless enabled by an enterprise administrator. If PAT is disabled, you won't be able to use PAT authentication. If you have OAuth access policy restrictions, you will need the OAuth App for each client (MCP host application) to be enabled (except {% data variables.product.prodname_vscode %} and {% data variables.product.prodname_vs %}).
40+
If you are an {% data variables.product.prodname_emu %}, then PAT is disabled by default, unless enabled by an enterprise administrator. If PAT is disabled, you won't be able to use PAT authentication. If you have OAuth access policy restrictions, you will need the OAuth App for each client (MCP host application) to be enabled (except {% data variables.product.prodname_vscode %} and {% data variables.product.prodname_vs %} since they are first-party Microsoft IDEs with native {% data variables.product.prodname_copilot_short %} integration).
4641

4742
* [Remote MCP server configuration with OAuth](#remote-mcp-server-configuration-with-oauth)
4843
* [Remote MCP server configuration with PAT](#remote-mcp-server-configuration-with-pat)
@@ -467,6 +462,7 @@ The {% data variables.product.github %} MCP server enables you to perform a wide
467462
{% data reusables.copilot.eclipse-prerequisites %}
468463
* **Latest version of the {% data variables.product.prodname_copilot %} extension**. Download this from the [Eclipse Marketplace](https://aka.ms/copiloteclipse). For more information, see [AUTOTITLE](/copilot/managing-copilot/configure-personal-settings/installing-the-github-copilot-extension-in-your-environment?tool=eclipse).
469464
* **Sign in to {% data variables.product.company_short %} from Eclipse**.
465+
* {% data reusables.copilot.mcp-policy-requirement %}
470466

471467
## Setting up the {% data variables.product.github %} MCP server in Eclipse
472468

@@ -534,8 +530,6 @@ The {% data variables.product.github %} MCP server enables you to perform a wide
534530

535531
{% webui %}
536532

537-
>[!NOTE] MCP in {% data variables.copilot.copilot_chat_dotcom_short %} is currently in {% data variables.release-phases.public_preview %} and subject to change.
538-
539533
## About MCP in {% data variables.copilot.copilot_chat_dotcom_short %}
540534

541535
The {% data variables.product.github %} MCP server is a Model Context Protocol (MCP) server provided and maintained by {% data variables.product.github %}. MCP allows you to integrate AI capabilities with other tools and services, enhancing your development experience by providing context-aware AI assistance.
@@ -553,7 +547,6 @@ The {% data variables.product.github %} MCP server is automatically configured i
553547

554548
Some examples of requests you can make are:
555549
* `Create a new branch called [BRANCH-NAME] in the repository [USERNAME/REPO-NAME].`
556-
* `Create a new branch called [BRANCH-NAME] in the repository [USERNAME/REPO-NAME].`
557550
* `Merge the pull request [PULL-REQUEST-NUMBER] in the repository [USERNAME/REPO-NAME].`
558551

559552
1. {% data variables.copilot.copilot_chat_short %} will ask you to confirm that you want to proceed with the action. Click **Allow** to confirm.

content/github-models/use-github-models/evaluating-ai-models.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,13 @@ After applying the parameters, you can add additional columns to compare more mo
131131

132132
Once the prompt is configured, run a structured evaluation to compare model outputs using real data and repeatable metrics.
133133

134-
Model evaluation helps you understand how different models and prompt configurations perform across real inputs. In the Prompt view, you can apply evaluators to multiple models side by side and review metrics such as similarity, relevance, and groundedness.
134+
Model evaluation helps you understand how different models and prompt configurations perform across real inputs. In the Prompt view, you can apply evaluators to multiple models side by side and review metrics such as similarity, fluency, coherence, relevance, and groundedness.
135135

136136
The following evaluators are available:
137137

138138
* **Similarity**: Measures how closely a model's output matches an expected or reference answer. This is useful when you want to confirm that the model returns consistent and accurate responses aligned with a known result. The score ranges from 0 to 1, with higher values indicating greater similarity.
139+
* **Fluency**: Evaluates the linguistic quality of a response, including grammar, coherence, and readability. This results in linguistically correct responses.
140+
* **Coherence**: Assesses the ability of the LLM to generate text that reads naturally, flows smoothly, and resembles human-like language in its responses. Use it when assessing the readability and user-friendliness of a model’s generated responses in real-world applications.
139141
* **Relevance**: Refers to how effectively a response addresses a question. It assesses the accuracy, completeness, and direct relevance of the response based solely on the given information. The score ranges from 0 to 1, with higher values indicating stronger alignment with the input's intent.
140142
* **Groundedness**: Measures how well an answer is anchored in the provided context, evaluating its relevance, accuracy, and completeness based exclusively on that context. It assesses the extent to which the answer fully addresses the question without introducing unrelated or incorrect information. The score ranges from 0 to 1, with higher values indicating higher accuracy.
141143
* **Custom prompt**: Lets you define your own evaluation criteria for one LLM to assess the output of another. This allows you to score model outputs based on your own guidelines. You can choose between pass/fail or scored evaluations, making it ideal for scenarios where standard metrics do not capture testing expectations.

data/reusables/code-scanning/codeql-query-tables/java.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| [Disabled Netty HTTP header validation](https://codeql.github.com/codeql-query-help/java/java-netty-http-request-or-response-splitting/) | 093, 113 | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} |
1919
| [Disabled Spring CSRF protection](https://codeql.github.com/codeql-query-help/java/java-spring-disabled-csrf-protection/) | 352 | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} |
2020
| [Exposed Spring Boot actuators](https://codeql.github.com/codeql-query-help/java/java-spring-boot-exposed-actuators/) | 200 | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "x" aria-label="Not included" %} |
21+
| [Exposed Spring Boot actuators in configuration file](https://codeql.github.com/codeql-query-help/java/java-spring-boot-exposed-actuators-config/) | 200 | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "x" aria-label="Not included" %} |
2122
| [Expression language injection (JEXL)](https://codeql.github.com/codeql-query-help/java/java-jexl-expression-injection/) | 094 | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} |
2223
| [Expression language injection (MVEL)](https://codeql.github.com/codeql-query-help/java/java-mvel-expression-injection/) | 094 | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} |
2324
| [Expression language injection (Spring)](https://codeql.github.com/codeql-query-help/java/java-spel-expression-injection/) | 094 | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} |

0 commit comments

Comments
 (0)