Skip to content

Commit 22ccb95

Browse files
authored
Merge pull request #43042 from github/repo-sync
Repo sync
2 parents 2485ee2 + 2a0e939 commit 22ccb95

File tree

18 files changed

+99
-90
lines changed

18 files changed

+99
-90
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ---------------------------------------------------------------
99
# To update the sha:
1010
# https://github.com/github/gh-base-image/pkgs/container/gh-base-image%2Fgh-base-noble
11-
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260213-184502-g77a9fd0b0@sha256:88c4a7176139d7ea917c7a30413af68bbf16672b16806a71451ada25d0ac78ff AS base
11+
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260218-111945-g0ef8bb15f@sha256:03eb088f3581049afaf2984f917a3a9be7e5efc248049f4156cd83481579fb59 AS base
1212

1313
# Install curl for Node install and determining the early access branch
1414
# Install git for cloning docs-early-access & translations repos

content/code-security/concepts/code-scanning/codeql/about-the-codeql-cli.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ contentType: concepts
3030
Software developers and security researchers can secure their code
3131
using {% data variables.product.prodname_codeql %} analysis. For more information about {% data variables.product.prodname_codeql %}, see [AUTOTITLE](/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql#about-codeql).
3232

33-
{% data reusables.code-scanning.what-is-codeql-cli %}
33+
The {% data variables.product.prodname_codeql_cli %} is a standalone, command-line tool that you can use to analyze code. Its main purpose is to generate a database representation of a codebase, a {% data variables.product.prodname_codeql %} database. Once the database is ready, you can query it interactively, or run a suite of queries to generate a set of results in SARIF format and upload the results to {% data variables.product.github %}.
3434

3535
You can use the {% data variables.product.prodname_codeql_cli %} to:
3636

@@ -110,4 +110,8 @@ codeql github upload-results \
110110
--sarif=python-results.sarif
111111
```
112112

113+
### Database extraction
114+
115+
The {% data variables.product.prodname_codeql_cli %} uses special programs, called extractors, to extract information from the source code of a software system into a database that can be queried. You can customize the behavior of extractors by setting extractor configuration options through the {% data variables.product.prodname_codeql_cli %}. See [AUTOTITLE](/code-security/reference/code-scanning/codeql/codeql-cli/extractor-options).
116+
113117
{% data reusables.code-scanning.codeql-license %}

content/code-security/concepts/vulnerability-reporting-and-management/about-global-security-advisories.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: About global security advisories
33
shortTitle: Global security advisories
4-
intro: Global security advisories live in the {% data variables.product.prodname_advisory_database %}, a collection of CVEs and {% data variables.product.company_short %}-originated advisories affecting the open source world. You can contribute to improving global security advisories.
4+
intro: Global security advisories are CVEs and {% data variables.product.company_short %}-originated advisories affecting the open source world, located in the {% data variables.product.prodname_advisory_database %}.
55
versions:
66
fpt: '*'
77
ghec: '*'
@@ -19,22 +19,24 @@ redirect_from:
1919

2020
## About global security advisories
2121

22-
{% ifversion fpt or ghec %}There are two types of advisories: global security advisories and repository security advisories. For more information about repository security advisories, see [AUTOTITLE](/code-security/security-advisories/working-with-repository-security-advisories/about-repository-security-advisories).{% endif %}
23-
24-
Global security advisories are grouped into these categories: {% data variables.product.company_short %}-reviewed advisories, unreviewed advisories, and malware advisories.
22+
{% ifversion fpt or ghec %} There are two types of advisories: global security advisories and repository security advisories. {% endif %}**Global** advisories live in the [{% data variables.product.prodname_advisory_database %}](https://github.com/advisories) and are grouped into three categories:
2523
* {% data reusables.advisory-database.github-reviewed-overview %}
2624
* {% data reusables.advisory-database.unreviewed-overview %}
2725
* {% data reusables.advisory-database.malware-overview %}
2826

2927
> [!NOTE]
3028
> {% data variables.product.prodname_dependabot %} doesn't generate {% data variables.product.prodname_dependabot_alerts %} for unreviewed and malware advisories.
3129
32-
For more information about the {% data variables.product.prodname_advisory_database %}, see [AUTOTITLE](/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/about-the-github-advisory-database).
30+
Every **repository** advisory is reviewed by the {% data variables.product.prodname_security %} curation team for consideration as a global advisory. We publish security advisories for any of the ecosystems supported by the dependency graph to the {% data variables.product.prodname_advisory_database %}.
31+
32+
Anyone can suggest improvements on any global security advisory. You can edit or add any detail, including additionally affected ecosystems, severity level or description of who is impacted. The {% data variables.product.prodname_security %} curation team will review the submitted improvements.
3333

34-
{% data reusables.security-advisory.global-advisories %}
34+
## Next steps
3535

36-
Every repository advisory is reviewed by the {% data variables.product.prodname_security %} curation team for consideration as a global advisory. We publish security advisories for any of the ecosystems supported by the dependency graph to the {% data variables.product.prodname_advisory_database %} on [github.com/advisories](https://github.com/advisories).
36+
Access advisories in the {% data variables.product.prodname_advisory_database %}. See [AUTOTITLE](/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/browsing-security-advisories-in-the-github-advisory-database).
3737

38-
You can access any advisory in the {% data variables.product.prodname_advisory_database %}. For more information, see [AUTOTITLE](/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/browsing-security-advisories-in-the-github-advisory-database).
38+
{% ifversion fpt or ghec %}
39+
## Further reading
3940

40-
You can suggest improvements to any advisory in the {% data variables.product.prodname_advisory_database %}. For more information, see [AUTOTITLE](/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/editing-security-advisories-in-the-github-advisory-database).
41+
* [AUTOTITLE](/code-security/security-advisories/working-with-repository-security-advisories/about-repository-security-advisories)
42+
{% endif %}

content/code-security/reference/code-scanning/codeql/codeql-cli/extractor-options.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Extractor options
3-
intro: You can use the {% data variables.product.prodname_codeql_cli %} to run {% data variables.product.prodname_codeql %} processes locally on software projects.
3+
intro: Control how the {% data variables.product.prodname_codeql_cli %} builds databases for analysis with extractor options.
44
product: '{% data reusables.gated-features.codeql %}'
55
versions:
66
fpt: '*'
@@ -19,13 +19,13 @@ contentType: reference
1919
<!--The CodeQL CLI man pages include a link to this article. If you rename this article,
2020
make sure that you also update the MS short link: https://aka.ms/codeql-cli-docs/extractor-options.-->
2121

22-
## About extractors
22+
## Available extractor options
2323

24-
The {% data variables.product.prodname_codeql_cli %} uses special programs, called extractors, to extract information from the source code of a software system into a database that can be queried. You can customize the behavior of extractors by setting extractor configuration options through the {% data variables.product.prodname_codeql_cli %}.
24+
Each extractor defines its own set of configuration options for building a queryable {% data variables.product.prodname_codeql %} database from source code. To find out which options are available for a particular extractor, you can run either of the following commands:
25+
* `codeql resolve languages --format=betterjson`
26+
* `codeql resolve extractor --language=LANGUAGE --format=betterjson`
2527

26-
## About extractor options
27-
28-
Each extractor defines its own set of configuration options. To find out which options are available for a particular extractor, you can run `codeql resolve languages` or `codeql resolve extractor` with the `--format=betterjson` option. The `betterjson` output format provides the root paths of extractors and additional information. The output of `codeql resolve extractor --format=betterjson` will often be formatted like the following example:
28+
The `betterjson` output format provides the root paths of extractors and additional information. The output of `codeql resolve extractor --language=LANGUAGE --format=betterjson` will often be formatted like the following example:
2929

3030
```json
3131
{
@@ -70,7 +70,7 @@ In the example above, the extractor declares two options:
7070
* `option1` is a `string` option with value matching `[a-z]+`
7171
* `group1.option2` is an `array` option with values matching `[1-9][0-9]\*`
7272

73-
## Setting extractor options with the {% data variables.product.prodname_codeql_cli %}
73+
## Commands for setting extractor options
7474

7575
The {% data variables.product.prodname_codeql_cli %} supports setting extractor options in subcommands that directly or indirectly invoke extractors. These commands are:
7676

@@ -84,7 +84,9 @@ When running these subcommands, you can set extractor options with the `--extrac
8484
* `codeql database create --extractor-option java.option1=abc ...`
8585
* `codeql database start-tracing --extractor-option java.group1.option2=102 ...`
8686

87-
`--extractor-option` requires exactly one argument of the form `extractor_option_name=extractor_option_value`. `extractor_option_name` is the name of the extractor (in this example, `java`) followed by a period and then the name of the extractor option (in this example, either `option1` or `group1.option2`). `extractor_option_value` is the value being assigned to the extractor option. The value must match the regular expression pattern of the extractor option (if it exists), and it must not contain newline characters.
87+
`--extractor-option` requires exactly one argument of the form `extractor_option_name=extractor_option_value`:
88+
* `extractor_option_name` is the name of the extractor (in this example, `java`) followed by a period and then the name of the extractor option (in this example, either `option1` or `group1.option2`).
89+
* `extractor_option_value` is the value being assigned to the extractor option. The value must match the regular expression pattern of the extractor option (if it exists), and it must not contain newline characters.
8890

8991
Using `--extractor-option` to assign an extractor option that does not exist is an error.
9092

@@ -97,7 +99,7 @@ You can also specify extractor option names without the extractor name. For exam
9799

98100
If you do not specify an extractor name, the extractor option settings will apply to all extractors that declare an option with the given name. In the above example, the first command would set the extractor option `option1` to `abc` for the `java` extractor and every extractor that has an option of `option1`, for example the `cpp` extractor, if the `option1` extractor option exists for that extractor.
99101

100-
## Setting extractor options from files
102+
## File format for extractor options
101103

102104
You can also set extractor options through a file. The {% data variables.product.prodname_codeql_cli %} subcommands that accept `--extractor-option` also accept `--extractor-options-file`, which has a required argument of the path to a YAML file (with extension `.yaml` or `.yml`) or a JSON file (with extension `.json`). For example:
103105

content/copilot/concepts/agents/code-review.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ redirect_from:
1111
- /copilot/code-review
1212
- /copilot/concepts/code-review/code-review
1313
- /copilot/concepts/code-review
14+
- /copilot/how-tos/use-copilot-agents/request-a-code-review/manage-tools
1415
contentType: concepts
1516
category:
1617
- Learn about Copilot
1718
---
1819

1920
## Introduction
2021

21-
{% data variables.copilot.copilot_code-review_short %} reviews code written in any language, and provides feedback. It reviews your code from multiple angles to identify issues and suggest fixes. You can apply suggested changes with a couple of clicks.
22+
{% data variables.copilot.copilot_code-review_short %} reviews code written in any language, and provides feedback. It reviews your code from multiple angles to identify issues and suggest fixes. You can apply suggested changes with a couple of clicks.
2223

2324
This article provides an overview of {% data variables.copilot.copilot_code-review_short %}. To learn how to request a code review from {% data variables.product.prodname_copilot_short %}, see [AUTOTITLE](/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review).
2425

@@ -77,7 +78,7 @@ Some file types are excluded from {% data variables.copilot.copilot_code-review_
7778
* Log files
7879
* SVG files
7980

80-
If you include these file types in a pull request, {% data variables.copilot.copilot_code-review_short %} will not review the file.
81+
If you include these file types in a pull request, {% data variables.copilot.copilot_code-review_short %} will not review the file.
8182

8283
For more information, see [AUTOTITLE](/copilot/reference/review-excluded-files).
8384

@@ -93,7 +94,6 @@ If you get a {% data variables.product.prodname_copilot_short %} subscription fr
9394
These new tools are enabled automatically for {% data variables.copilot.copilot_pro_short %} or {% data variables.copilot.copilot_pro_plus_short %} plans.
9495

9596
* **Full project context gathering**. This provides more specific, accurate, and contextually aware code reviews.
96-
* **Support for static analysis tools like {% data variables.product.prodname_codeql %}, ESLint, and PMD**. This delivers more high-signal, consistent findings for security and quality.
9797
* **The ability to pass suggestions to {% data variables.copilot.copilot_coding_agent %}**. This automates creation of a new pull request against your branch with the suggested fixes applied.
9898

9999
You do not need to have {% data variables.product.prodname_code_scanning %} and {% data variables.product.prodname_actions %} enabled in your organization or enterprise to use the {% data variables.copilot.copilot_code-review-tools_short %}.
@@ -176,16 +176,6 @@ For full instructions, see [AUTOTITLE](/copilot/how-tos/agents/copilot-code-revi
176176
> [!NOTE]
177177
> Unless {% data variables.product.prodname_copilot_short %} has been configured to review each push to a pull request, it will only review a pull request once. If you make changes to the pull request after it has been automatically reviewed and you want {% data variables.product.prodname_copilot_short %} to re-review it, you can request this manually. Click the {% octicon "sync" aria-label="Re-request review" %} button next to {% data variables.product.prodname_copilot_short %}'s name in the **Reviewers** menu.
178178
179-
## About static analysis tools
180-
181-
Enable static analysis tools in {% data variables.copilot.copilot_code-review_short %} to enhance its ability to identify and fix issues. Available tools include:
182-
183-
* **{% data variables.product.prodname_codeql %}**: A code analysis engine that identifies security vulnerabilities. For more information, see [About {% data variables.product.prodname_codeql %}](/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql#about-codeql).
184-
* **ESLint**: A linter designed specifically for JavaScript. See [Core Concepts](https://eslint.org/docs/latest/use/core-concepts/) in the the ESLint documentation.
185-
* **PMD**: A static code analyzer that focuses on Java and Apex. It also supports many other languages. See the [PMD documentation](https://docs.pmd-code.org/latest/).
186-
187-
If you have access to {% data variables.copilot.copilot_code-review-tools_short %}, {% data variables.product.prodname_codeql %} is enabled by default. ESLint and PMD are disabled. If you have access to rulesets, you can change your selected tools. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/manage-tools).
188-
189179
## Getting detailed code quality feedback for your whole repository
190180

191181
{% data variables.copilot.copilot_code-review %} reviews your code in pull requests and provides feedback. If you want actionable feedback on the reliability and maintainability of your whole repository, enable {% data variables.product.prodname_code_quality %}. See [AUTOTITLE](/code-security/code-quality/concepts/about-code-quality).

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ Having {% data variables.copilot.copilot_coding_agent %} as an additional coding
6767

6868
You can create specialized {% data variables.copilot.custom_agents_short %} for different tasks. For example, you might create a {% data variables.copilot.copilot_custom_agent_short %} specialized for frontend development that focuses on React components and styling, a documentation agent that excels at writing and updating technical documentation, or a testing agent that specializes in generating comprehensive unit tests. Each {% data variables.copilot.copilot_custom_agent_short %} can be tailored with specific prompts and tools suited to its particular task.
6969

70+
## Measuring pull request outcomes for {% data variables.copilot.copilot_coding_agent %}
71+
72+
Enterprise administrators can use {% data variables.product.prodname_copilot_short %} usage metrics to analyze pull request outcomes for pull requests created by {% data variables.copilot.copilot_coding_agent %}.
73+
74+
The enterprise-level {% data variables.product.prodname_copilot_short %} usage metrics API includes pull request lifecycle metrics such as:
75+
76+
* The total number of pull requests created and merged
77+
* The number of pull requests created by {% data variables.copilot.copilot_coding_agent %} that have been merged
78+
* Median time to merge for merged pull requests, including pull requests created by {% data variables.copilot.copilot_coding_agent %}
79+
80+
These metrics can help you track adoption of {% data variables.copilot.copilot_coding_agent %} and monitor changes in pull request throughput and time to merge over time. See [AUTOTITLE](/copilot/concepts/copilot-usage-metrics/copilot-metrics).
81+
7082
## Integrating {% data variables.copilot.copilot_coding_agent %} with third-party tools
7183

7284
You can also invoke {% data variables.copilot.copilot_coding_agent %} from external tools, allowing you to assign tasks to {% data variables.product.prodname_copilot_short %}, provide context, and open pull requests without leaving your workflow. See [AUTOTITLE](/copilot/concepts/tools/about-copilot-integrations)

0 commit comments

Comments
 (0)