From 3b2186c4997561abf1fc203ab3b9ef0f20e76ce3 Mon Sep 17 00:00:00 2001 From: Harald Kirschner Date: Sat, 21 Nov 2026 06:06:05 +0000 Subject: [PATCH 1/7] docs: document plugin-only customization controls (#64680) Co-authored-by: hkirschner_microsoft Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../concepts/enterprise/mcp-management.md | 13 +++ .../deploy-managed-settings.md | 3 + .../manage-plugin-marketplaces-and-plugins.md | 80 ++++++++++++++++++- .../override-settings-for-teams.md | 55 ++++++++++++- .../cli-config-dir-reference.md | 10 ++- .../enterprise-managed-settings.md | 59 ++++++++++++++ .../copilot/mcp/registry-alternative.md | 2 +- 7 files changed, 213 insertions(+), 9 deletions(-) diff --git a/content/copilot/concepts/enterprise/mcp-management.md b/content/copilot/concepts/enterprise/mcp-management.md index 8e84ddb211e7..99b5e9060402 100644 --- a/content/copilot/concepts/enterprise/mcp-management.md +++ b/content/copilot/concepts/enterprise/mcp-management.md @@ -38,6 +38,19 @@ Alternatively, you can host your own MCP registry and restrict access to servers {% endrowheaders %} +## Distribute MCP servers through a plugin marketplace + +If your enterprise already uses a plugin marketplace, you can distribute approved MCP server configurations alongside skills in the same plugins. This lets you maintain one catalog of customizations instead of hosting a separate MCP registry for discovery. + +On supported clients, combine the following settings: + +* `strictKnownMarketplaces` restricts eligible marketplace sources. +* `strictPluginOnlyCustomization` with `mcp` blocks standalone user and project MCP configurations while allowing eligible plugin and managed sources. + +These source restrictions do not replace MCP server allowlists and denylists. Keep those rules if you also need to restrict server URLs or commands. + +Before retiring a registry policy, verify that the replacement controls cover every affected client and session type. For setup and migration steps, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/manage-plugin-marketplaces-and-plugins#move-mcp-distribution-from-a-registry-to-a-marketplace). + ## Next steps To configure an allowlist on {% data variables.product.github %}, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-enterprise-allowlist). diff --git a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/deploy-managed-settings.md b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/deploy-managed-settings.md index 80348595b516..0703b0f08f8c 100644 --- a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/deploy-managed-settings.md +++ b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/deploy-managed-settings.md @@ -112,3 +112,6 @@ As an exception, the following keys are composed in the most restrictive directi * `sandbox` * `permissions.deny`, `permissions.ask`, and `permissions.allow` +* `strictPluginOnlyCustomization` + +For `strictPluginOnlyCustomization`, a category restricted by any managed source stays restricted. For example, an MDM value of `false` cannot remove a server-managed or file-based restriction. Device-managed settings include both native MDM policies and administrator-deployed files. For server-side delegation and composition details, see [`strictPluginOnlyCustomization`](/copilot/reference/enterprise-administrators/enterprise-managed-settings#strictpluginonlycustomization). diff --git a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/manage-plugin-marketplaces-and-plugins.md b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/manage-plugin-marketplaces-and-plugins.md index 1be3e7a9ba4a..e3b5be5f8f2b 100644 --- a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/manage-plugin-marketplaces-and-plugins.md +++ b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/manage-plugin-marketplaces-and-plugins.md @@ -2,7 +2,7 @@ title: Managing plugin marketplaces and plugins with enterprise-managed settings shortTitle: Manage plugins and marketplaces allowTitleToDifferFromFilename: true -intro: Control which plugin marketplaces are available to enterprise members and which plugins are required or blocked. +intro: Choose where enterprise members get customizations and distribute approved tools through shared plugin marketplaces. permissions: Enterprise owners versions: feature: copilot @@ -13,7 +13,9 @@ category: - Build agents at enterprise scale --- -Use the `{% data variables.copilot.managed_setting_file %}` file to make plugin marketplaces available and require or block specific plugins. For an overview of enterprise managed settings, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/get-started). +As an enterprise administrator, you can require selected {% data variables.product.prodname_copilot_short %} customizations to come from eligible plugins or managed settings. This prevents users from supplying those customizations through standalone user or project configuration. Combine this with marketplace restrictions to distribute approved MCP tools and executable canvases through a shared plugin library without disabling those capabilities entirely. + +Use the `{% data variables.copilot.managed_setting_file %}` file to configure these controls, make plugin marketplaces available, and require or block specific plugins. For an overview of enterprise managed settings, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/get-started). Managed settings always take precedence over repository defaults and member preferences. @@ -67,6 +69,78 @@ The marketplace name is the `name` in the marketplace's `marketplace.json` file. You can require or block additional plugins for an enterprise team through `{% data variables.copilot.team_mappings_file %}`. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/override-settings-for-teams). +## Restrict standalone customizations + +Approving a marketplace alone does not prevent users from configuring standalone customizations outside that marketplace. Use `strictPluginOnlyCustomization` to require selected categories to come from eligible plugins or managed settings. Combine it with `strictKnownMarketplaces` to restrict eligible marketplace sources. + +To distribute an approved library while restricting standalone MCP servers and executable {% data variables.product.prodname_copilot_short %} extensions: + +1. Add the following configuration to your `{% data variables.copilot.managed_setting_file %}` file, preserving any other settings you need: + + ```json copy + { + "extraKnownMarketplaces": { + "engineering-tools": { + "source": { + "source": "github", + "repo": "ORG/REPOSITORY" + } + } + }, + "strictKnownMarketplaces": [ + { + "source": "github", + "repo": "ORG/REPOSITORY" + } + ], + "enabledPlugins": { + "REQUIRED-PLUGIN@engineering-tools": true, + "BLOCKED-PLUGIN@engineering-tools": false + }, + "strictPluginOnlyCustomization": ["mcp", "extensions"] + } + ``` + +1. Replace the example values: + + * Replace both instances of `ORG/REPOSITORY` with your marketplace repository. + * Replace `engineering-tools` with the marketplace's name. + * Replace `REQUIRED-PLUGIN` and `BLOCKED-PLUGIN` with plugin names from that marketplace. + * Remove either plugin entry if you do not need to require or block a specific plugin. + +1. Deploy the settings and verify the behavior in the supported clients your enterprise uses. Confirm that an allowed plugin's customizations load and that equivalent standalone MCP servers and executable extensions do not. + +In this example, `extraKnownMarketplaces` supplies the marketplace definition. The `strictKnownMarketplaces` key restricts eligible marketplace sources, and `enabledPlugins` requires or blocks individual plugins. Other eligible plugins from the allowed marketplace remain available without being required by the enterprise. + +The `strictPluginOnlyCustomization` array blocks standalone MCP servers and executable extensions, including canvas providers. Customizations supplied by eligible plugins or managed settings remain eligible, subject to other policies. Skills, custom agents, and hooks remain unrestricted by this key. To restrict all supported categories, use `true` instead of the array. + +For category names, policy composition, and the {% data variables.product.prodname_vscode_shortname %} session scope, see [`strictPluginOnlyCustomization`](/copilot/reference/enterprise-administrators/enterprise-managed-settings#strictpluginonlycustomization). + +To let a designated enterprise team develop standalone MCP servers while retaining restrictions for other users, see [Allow an MCP-development team to use standalone servers](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/override-settings-for-teams#allow-an-mcp-development-team-to-use-standalone-servers). + +An approved marketplace is a distribution control, not a guarantee that its plugins are safe. Continue reviewing plugin code and applying appropriate MCP server, permission, and sandbox policies. + +## Move MCP distribution from a registry to a marketplace + +If your enterprise already uses a plugin marketplace, you can distribute approved MCP server configurations and skills together instead of maintaining a separate MCP registry. Plugins package the configuration needed to connect to or start a server. They do not replace hosting for remote MCP servers or remove authentication requirements. + +Keep the **MCP servers in {% data variables.product.prodname_copilot_short %}** policy enabled. Plugin settings cannot enable MCP when that policy disables it. + +1. Check support in every client and session type you intend to migrate. Each must support plugin-provided MCP servers, marketplace restrictions, and plugin-only restrictions. Keep existing controls for clients that do not support the replacement. +1. Package your approved MCP server configurations in plugins and add them to your marketplace. You can include related skills in the same plugin. For supported formats and component locations, see [AUTOTITLE](/copilot/reference/plugin-and-marketplace-reference). +1. Apply the configuration in [Restrict standalone customizations](#restrict-standalone-customizations). Use `extraKnownMarketplaces` to supply the marketplace and `strictKnownMarketplaces` to restrict eligible sources. Include `mcp` in `strictPluginOnlyCustomization`, preserving any other categories you already restrict. Use `enabledPlugins` if you need to require specific plugins. +1. Verify the replacement in each affected client and session type: + + * Confirm that members can install an allowed plugin and use its MCP tools. + * Confirm that an equivalent standalone MCP configuration is blocked. + * Confirm that a disallowed marketplace cannot supply the plugin. + + Test with a server already allowed by your registry. This ensures that registry enforcement does not hide a missing plugin-only restriction. + +1. Wait until the replacement controls are active for all affected users. Then set **Restrict MCP access to registry servers** to **Allow all** and repeat the checks. Optionally clear **MCP Registry URL** if you no longer use it for discovery. These changes remove the registry restriction, not the managed plugin restrictions. For the policy controls, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-mcp-usage/restrict-based-on-registry). + +Keep any `allowedMcpServers` and `deniedMcpServers` rules you still need. Plugin-provided servers must satisfy those rules too. Plugin-only restrictions also permit managed MCP sources and do not exclude built-in default servers. They do not enforce an absolute "only servers from this marketplace" rule. + ## Making plugins optional Enterprise-managed settings can only require or block plugins. For project-specific defaults, use the repository's `.github/copilot/settings.json` file. Contributors can override those defaults locally where supported, subject to managed policy. See [AUTOTITLE](/copilot/reference/copilot-cli-reference/cli-config-dir-reference#repository-settings-githubcopilotsettingsjson). @@ -77,4 +151,4 @@ The usage metrics API provides {% data variables.copilot.copilot_cli_short %} cu Each `totals_by_*` array includes up to five entries with the most activity. Customer-defined identifiers can be grouped under `other` or `custom`. These event counts do not measure exact adoption, and an absent entry does not mean zero usage. Do not add plugin and skill counts together, because plugin interactions are already included in skill totals. -For field definitions and access requirements, see [{% data variables.copilot.copilot_cli_short %} customization fields](/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#copilot-cli-customization-fields-api-only). +For field definitions and access requirements, see [Customization fields](/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#customization-fields-api-only). diff --git a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/override-settings-for-teams.md b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/override-settings-for-teams.md index 3581ff52549f..61a81cb9aa49 100644 --- a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/override-settings-for-teams.md +++ b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/override-settings-for-teams.md @@ -18,7 +18,7 @@ To let enterprise teams replace an enterprise default, mark the key as `overrida ## Supported keys -The `{ "overridable": }` syntax applies to the `model`, `autoTier`,`fusionTier`, `permissions.disableBypassPermissionsMode`, `permissions.deny`, `permissions.ask`, `permissions.allow`, `allowedMcpServers`, `deniedMcpServers`, `extraKnownMarketplaces`, `strictKnownMarketplaces`, and `sandbox` keys. +The `{ "overridable": }` syntax applies to the `model`, `autoTier`,`fusionTier`, `permissions.disableBypassPermissionsMode`, `permissions.deny`, `permissions.ask`, `permissions.allow`, `allowedMcpServers`, `deniedMcpServers`, `extraKnownMarketplaces`, `strictKnownMarketplaces`, `strictPluginOnlyCustomization`, and `sandbox` keys. `enabledPlugins` works additively. The enterprise `{% data variables.copilot.managed_setting_file %}` sets a baseline, and an enterprise team file can add more plugins on top of it. @@ -80,4 +80,55 @@ You will use `copilot/{% data variables.copilot.team_mappings_file %}` and the ` 1. Commit and push your changes to the default branch. -{% data variables.product.prodname_dotcom %} evaluates enterprise team membership and applies matching settings for each person. If a user belongs to multiple enterprise teams, their enterprise team files are combined using the least restrictive value for each key, then applied beneath the enterprise settings, where platform decisions always win. +{% data variables.product.prodname_dotcom %} evaluates enterprise team membership and applies matching settings for each person. If a user belongs to multiple enterprise teams, their enterprise team files are combined using the least restrictive value for most keys, then applied beneath the enterprise settings, where platform decisions always win. + +For `strictPluginOnlyCustomization`, restrictions from matching enterprise teams are combined instead. A category restricted by any matching team stays restricted. + +## Allow an MCP-development team to use standalone servers + +You can keep most developers on plugin-provided MCP servers while allowing an enterprise team to develop and test standalone MCP configurations. Use an overridable enterprise default and a team setting that removes only the `mcp` restriction. + +This example keeps standalone executable extensions restricted for everyone. It does not change marketplace restrictions, MCP enablement, server allowlists and denylists, or stricter managed-only policies. Device-managed restrictions also remain in effect. + +1. Create an enterprise team for MCP developers. In this example, its slug is `mcp-developers`. Add the people who need to develop and test MCP servers to this team. +1. In `copilot/{% data variables.copilot.managed_setting_file %}`, make the source restriction overridable: + + ```json + { + "strictPluginOnlyCustomization": { + "overridable": ["mcp", "extensions"] + } + } + ``` + + Preserve your other managed settings, including the marketplace restrictions that define approved plugin sources. Keep any additional categories you already restrict in both the enterprise default and the team value below. + +1. In `copilot/{% data variables.copilot.team_mappings_file %}`, map a settings file to the enterprise team: + + ```json + { + "mcp-development.json": ["mcp-developers"] + } + ``` + + Keep any existing mappings. Replace `mcp-developers` with your enterprise team's slug. + +1. Create `copilot/{% data variables.copilot.team_settings_directory %}mcp-development.json` with the replacement value: + + ```json + { + "strictPluginOnlyCustomization": ["extensions"] + } + ``` + + The team value replaces the entire overridable default. Include every category that should remain restricted. Setting the value to `false` removes all restrictions from this key at this layer. + +1. Commit and push the files, then verify the effective behavior in supported clients for a team member and a non-member: + + * Confirm that the team member can use standalone MCP configurations if other policies permit them. + * Confirm that the non-member cannot use the same standalone MCP configurations. + * Confirm that standalone executable extensions remain blocked for both users. + + A user without an applicable replacement retains the enterprise default. + +If a developer also belongs to a team whose settings restrict `mcp`, that restriction still applies. To permit standalone MCP development, ensure that no other applicable team or managed policy imposes the restriction. diff --git a/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md b/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md index 2922e379cb81..b65fd700733a 100644 --- a/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md +++ b/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md @@ -722,6 +722,8 @@ Settings are applied in this order (later overrides earlier): MDM managed settings load at startup and merge with user settings as a policy baseline. For most keys, user settings can override that baseline. For `permissions.disableBypassPermissionsMode`, an MDM value of `"disable"` always wins. Managed `sandbox` settings are another exception. Instead of being overridable, each managed `sandbox` value sets a floor that you cannot relax. If your own setting is more permissive, the managed value wins. The `sandbox.failIfUnavailable` setting can only be set by an administrator. For more information, see [MDM managed settings](#mdm-managed-settings). +Managed `strictPluginOnlyCustomization` restrictions also cannot be relaxed by user, repository, or local settings. + | Scope | Location | Purpose | |-------|----------|---------| | User | `~/.copilot/settings.json` | Global defaults for all repositories. Use the `COPILOT_HOME` environment variable to specify an alternative path. | @@ -966,7 +968,9 @@ IT administrators can push baseline policy using Mobile Device Management (MDM) Managed settings apply uniformly across every session-hosting mode—interactive, `-p`, `--acp`, `--ahp-host`, and `--server`—so enterprise MCP, permission, and plugin policy can't be bypassed by starting a session through a different entry point. -{% data variables.copilot.copilot_cli_short %} also loads server-managed settings at startup, in addition to MDM. Device-managed (MDM) and server-managed settings are resolved **per key**: MDM's value wins for any key it sets, and the server's value fills in keys MDM leaves unset. This lets an organization set some policy via MDM (for example, `permissions`) while still receiving other managed defaults (for example, `model`) from the server. +{% data variables.copilot.copilot_cli_short %} also loads server-managed settings at startup, in addition to MDM. Except for keys with restrictive composition rules, MDM and server-managed settings are resolved **per key**: MDM's value wins for any key it sets, and the server's value fills in keys MDM leaves unset. This lets an organization set some policy via MDM while still receiving other managed defaults, such as `model`, from the server. + +For `strictPluginOnlyCustomization`, restrictions are combined across native MDM, administrator-deployed `managed-settings.json` files, server-managed settings, and policy-helper settings. A category restricted by any source stays restricted. Setting the key to `false` or a narrower array in another source cannot remove that restriction. Long-running sessions re-fetch and re-apply managed settings hourly, so policy changes—for example, an organization enabling `permissions.disableBypassPermissionsMode`—take effect without restarting the session. @@ -1025,8 +1029,8 @@ Only the following keys are supported in MDM managed settings. | `sandbox.sandboxLspServers` | Boolean, defaults to `true`. When sandboxing is enabled, language servers start under the session's sandbox policy. Set to `false` to run language servers outside the sandbox, subject to the managed sandbox policy floor. | | `shellShortcut` | Force-enable or force-disable the `$` interactive shell shortcut for all users. A managed value always overrides the user's own `shellShortcut` setting. | | `strictKnownMarketplaces` | Restrict plugins to an allowlist of known marketplaces (a JSON array of marketplace specs). The allowlist also governs built-in marketplaces once set—an empty array (`[]`) hides and blocks every marketplace, including built-ins, not just user- or repository-added ones. | -| `strictPluginOnlyCustomization` | Block standalone user and repository customizations. Set to `true` for skills, agents, hooks, and MCP servers, or an array such as `["skills", "mcp"]` to restrict only the named surfaces. Plugin-provided and managed customizations remain eligible. Omit to preserve existing behavior. For hook-specific restrictions, see [AUTOTITLE](/copilot/reference/hooks-reference#managed-hook-restrictions). | -| `allowManagedHooksOnly` | Restrict hook sources to enterprise-managed hooks and hooks from plugins required by managed policy. Hook-specific behavior is described in the hooks reference linked above. | +| `strictPluginOnlyCustomization` | Require selected customization categories to come from eligible plugins or managed settings. Restrictions combine across managed sources and cannot be relaxed by user or repository settings. See [`strictPluginOnlyCustomization`](/copilot/reference/enterprise-administrators/enterprise-managed-settings#strictpluginonlycustomization). | +| `allowManagedHooksOnly` | Restrict hook sources to enterprise-managed hooks and hooks from plugins required by managed policy. For hook-specific restrictions, see [AUTOTITLE](/copilot/reference/hooks-reference#managed-hook-restrictions). | | `telemetry` | Push baseline OpenTelemetry export configuration: `enabled`, `endpoint`, `protocol`, `headers`, `resourceAttributes`, `captureContent`, `lockCaptureContent`, `serviceName`, and `headersProvider`. See [AUTOTITLE](/copilot/reference/enterprise-administrators/opentelemetry-reference). | > [!NOTE] diff --git a/content/copilot/reference/enterprise-administrators/enterprise-managed-settings.md b/content/copilot/reference/enterprise-administrators/enterprise-managed-settings.md index d3ad19c9b0e7..b765e717a3cf 100644 --- a/content/copilot/reference/enterprise-administrators/enterprise-managed-settings.md +++ b/content/copilot/reference/enterprise-administrators/enterprise-managed-settings.md @@ -35,6 +35,7 @@ For instructions on creating the file, see [AUTOTITLE](/copilot/how-tos/administ | `enabledPlugins` | Enables or disables specific plugins by key | | `extraKnownMarketplaces` | Adds plugin marketplaces that users can access | | `strictKnownMarketplaces` | Restricts plugin installation to explicitly listed marketplaces | +| `strictPluginOnlyCustomization` | Requires selected customization categories to come from eligible plugins or managed settings | | `telemetry` | Configures OpenTelemetry export, routing {% data variables.product.prodname_copilot_short %} usage data to a collector of your choice | | `remoteControl` | Restricts whether sessions hosted on this device can be remotely controlled, based on the controlling client's SSO authorization status for the listed organizations. Doesn't affect the user's ability to remotely control sessions hosted on other devices | | `forceRemoteSettingsRefresh` | Requires a fresh server-managed settings fetch on client startup | @@ -287,6 +288,64 @@ This key is overridable for enterprise teams. Wrap the complete allowlist in `ov Use a regular array in the enterprise team file to replace the default allowlist. Omitting the key retains the enterprise default. An explicit empty array, `[]`, means complete lockdown, not an unmanaged policy. +## strictPluginOnlyCustomization + +Choose which customization categories must come from eligible plugins or managed settings instead of standalone user, workspace, or project configuration. This controls their sources without disabling the capabilities entirely. Other policies still determine which customizations can load. + +The setting accepts these values: + +* `true`: Restricts all five supported categories. +* `false` or omitted: Adds no restriction from this key. +* An array: Restricts only the listed categories. + +The supported category names are: + +{% rowheaders %} + +| Category | Customizations | +| --- | --- | +| `skills` | Agent skills | +| `agents` | Custom agents | +| `hooks` | Hooks | +| `mcp` | MCP servers | +| `extensions` | Executable {% data variables.product.prodname_copilot_short %} extensions, including canvas providers. This does not refer to {% data variables.product.prodname_vscode_shortname %} Marketplace extensions. | + +{% endrowheaders %} + +For `extensions`, the restriction also blocks standalone extensions loaded from session-state directories. There is no separate category for canvases. + +For example, restrict standalone MCP servers and executable extensions while leaving skills, agents, and hooks unrestricted by this key: + +```json +{ + "strictPluginOnlyCustomization": ["mcp", "extensions"] +} +``` + +For server-managed deployments, wrap the value in `{ "overridable": VALUE }` to allow the following managed settings to replace the enterprise default: + +* Enterprise-team settings +* Organization settings +* Organization-team settings + +These sources can replace the default only when they apply to the user. Without an applicable replacement, the default remains. None of these layers can relax an unwrapped enterprise restriction. + +The server resolves the wrapper before sending the effective value to clients. User settings and repository settings cannot relax that value. + +Restrictions from overlapping enterprise team settings are combined. A category restricted by any matching team stays restricted, even if another team sets the key to `false` or omits that category. + +After the server resolves overrides, restrictions from server-managed, device-managed, and policy-helper settings are combined. Device-managed settings include both native MDM policies and administrator-deployed `managed-settings.json` files. + +A category restricted by any of these sources stays restricted, even if another source sets the key to `false` or omits that category. An enterprise team override cannot relax a device-managed restriction. + +For an example that allows a designated team to develop standalone MCP servers, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/override-settings-for-teams#allow-an-mcp-development-team-to-use-standalone-servers). + +Plugins can remain eligible even if the enterprise does not require them through `enabledPlugins`. Use `strictKnownMarketplaces` separately to restrict marketplace sources. For a combined example, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/manage-plugin-marketplaces-and-plugins#restrict-standalone-customizations). + +MCP server allowlists and denylists, stricter managed-only policies, permissions, and sandbox restrictions still apply. Allowing a customization's source does not grant it additional access. + +In {% data variables.product.prodname_vscode_shortname %}, this behavior applies to {% data variables.product.prodname_copilot_short %} sessions that use Agent Host. Do not rely on this setting to enforce the same restrictions in other session types. + ## model Sets your preferred model as the default for new conversations. This lets you choose the default model that best fits your enterprise's workflows. Users can still select a different model on a per-conversation basis. diff --git a/data/reusables/copilot/mcp/registry-alternative.md b/data/reusables/copilot/mcp/registry-alternative.md index fa5b5f307382..2f473ab7485e 100644 --- a/data/reusables/copilot/mcp/registry-alternative.md +++ b/data/reusables/copilot/mcp/registry-alternative.md @@ -1 +1 @@ -This feature is in {% data variables.release-phases.public_preview %} and is not the recommended method for restricting access to MCP servers. The more secure, generally available method is to define settings in your enterprise's `{% data variables.copilot.managed_setting_file %}` file. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-enterprise-allowlist). +This feature is in {% data variables.release-phases.public_preview %} and is not the recommended method for restricting access to MCP servers. The more secure, generally available method is to define settings in your enterprise's `{% data variables.copilot.managed_setting_file %}` file. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-enterprise-allowlist). If you already use a plugin marketplace, see [Moving MCP distribution to a marketplace](/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/manage-plugin-marketplaces-and-plugins#move-mcp-distribution-from-a-registry-to-a-marketplace). From ea2797c5d750457a26b27f5f92f63764d4843d4a Mon Sep 17 00:00:00 2001 From: "release-controller[bot]" <110195724+release-controller[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 21:04:54 +0000 Subject: [PATCH 2/7] Patch release notes for GitHub Enterprise Server (#64827) Co-authored-by: Release-Controller Co-authored-by: Daniel Johnson Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0e3bffea-40ee-4a09-be2e-95ddcc1e716d --- .../enterprise-server/3-19/17.yml | 49 +++++++++++++++++++ .../enterprise-server/3-20/13.yml | 45 +++++++++++++++++ .../enterprise-server/3-21/11.yml | 45 +++++++++++++++++ .../enterprise-server/3-22/6.yml | 43 ++++++++++++++++ 4 files changed, 182 insertions(+) create mode 100644 data/release-notes/enterprise-server/3-19/17.yml create mode 100644 data/release-notes/enterprise-server/3-20/13.yml create mode 100644 data/release-notes/enterprise-server/3-21/11.yml create mode 100644 data/release-notes/enterprise-server/3-22/6.yml diff --git a/data/release-notes/enterprise-server/3-19/17.yml b/data/release-notes/enterprise-server/3-19/17.yml new file mode 100644 index 000000000000..1c36d437a2d9 --- /dev/null +++ b/data/release-notes/enterprise-server/3-19/17.yml @@ -0,0 +1,49 @@ +date: '2026-11-22' +sections: + security_fixes: + - | + **CRITICAL**: {% data variables.product.github %} has updated Ruby to fix [several announced vulnerabilities](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/). Where an update was not immediately possible, mitigations were introduced at the application level. + - | + **HIGH**: {% data variables.product.github %} mitigated CVE-2026-114938, a vulnerability in the Java runtime bundled with Elasticsearch, by configuring Elasticsearch to start with `-XX:UseAVX=2` on x86-64 appliances. + - | + **HIGH**: An unauthenticated attacker could cause a denial of service by sending crafted HTTP/2 traffic that crashed HAProxy. HAProxy has been updated to version 2.8.32. + - | + Packages have been updated to the latest security versions. + bugs: + - | + Users could not sign in to {% data variables.product.prodname_ghe_server %} through SAML when their identity provider returned a NameID that differed from the stored mapping only by letter case or accent marks. + known_issues: + - | + During an upgrade of {% data variables.product.prodname_ghe_server %}, custom firewall rules are removed. If you use custom firewall rules, you must reapply them after upgrading. + - | + If the root site administrator is locked out of the {% data variables.enterprise.management_console %} after failed login attempts, the account does not unlock automatically after the defined lockout time. Someone with administrative SSH access to the instance must unlock the account using the administrative shell. For more information, see [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-web-ui/troubleshooting-access-to-the-management-console#unlocking-the-root-site-administrator-account). + - | + {% data reusables.release-notes.large-adoc-files-issue %} + - | + Admin stats REST API endpoints may time out on appliances with many users or repositories. Retrying the request until data is returned is advised. + - | + When following the steps for [AUTOTITLE](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-the-primary-database-node-mysql-or-mysql-and-mssql), running `ghe-cluster-config-apply` might fail with errors. If this occurs, re-running `ghe-cluster-config-apply` is expected to succeed. + - | + Running a config apply as part of the steps for [Replacing a node in an emergency](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-a-node-in-an-emergency) may fail with errors if the node being replaced is still reachable. If this occurs, shut down the node and repeat the steps. + - | + {% data reusables.release-notes.2024-06-possible-frontend-5-minute-outage-during-hotpatch-upgrade %} + - | + When restoring data originally backed up from a 3.13 or greater appliance version, the Elasticsearch indices need to be reindexed before some of the data will show up. This happens via a scheduled job that runs on the first Saturday of each month. It can also be forced by running `/usr/local/share/enterprise/ghe-es-search-repair`. + - | + When enabling automatic update checks for the first time in the {% data variables.enterprise.management_console %}, the status is not dynamically reflected until the "Updates" page is reloaded. + - | + When restoring from a backup snapshot, a large number of `mapper_parsing_exception` errors may be displayed. + - | + When initializing a new GHES cluster, nodes with the `consul-server` role should be added to the cluster before adding additional nodes. Adding all nodes simultaneously creates a race condition between nomad server registration and nomad client registration. + - | + In a cluster, the host running restore requires access to the storage nodes via their private IPs. + - | + After a restore, existing outside collaborators cannot be added to repositories in a new organization. This issue can be resolved by running `/usr/local/share/enterprise/ghe-es-search-repair` on the appliance. + - | + After a geo-replica is promoted to be a primary by running `ghe-repl-promote`, the actions workflow of a repository does not have any suggested workflows. + - | + The setting to define private registries at the organization level for code scanning is only available if {% data variables.product.prodname_dependabot %} is also enabled for the instance. + - | + After a restart, an instance can remain unavailable with "Starting..." displayed in the web interface. To recover, an administrator can connect using administrative SSH and rerun `ghe-config-apply`. This provides temporary recovery but does not prevent the issue from recurring. This issue is resolved in {% data variables.product.prodname_ghe_server %} 3.21.0 and later. + - | + `ghe-storage-extend` will fail for disks with a sector size greater than 1KiB, most notably with Azure Premium SSD v2 disks. This is due to an upstream bug with `resize2fs` when resizing a mounted disk. diff --git a/data/release-notes/enterprise-server/3-20/13.yml b/data/release-notes/enterprise-server/3-20/13.yml new file mode 100644 index 000000000000..51e4a51ecb8e --- /dev/null +++ b/data/release-notes/enterprise-server/3-20/13.yml @@ -0,0 +1,45 @@ +date: '2026-11-22' +sections: + security_fixes: + - | + **CRITICAL**: {% data variables.product.github %} has updated Ruby to fix [several announced vulnerabilities](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/). Where an update was not immediately possible, mitigations were introduced at the application level. + - | + **HIGH**: {% data variables.product.github %} mitigated CVE-2026-114938, a vulnerability in the Java runtime bundled with Elasticsearch, by configuring Elasticsearch to start with `-XX:UseAVX=2` on x86-64 appliances. + - | + **HIGH**: An unauthenticated attacker could cause a denial of service by sending crafted HTTP/2 traffic that crashed HAProxy. HAProxy has been updated to version 2.8.32. + - | + Packages have been updated to the latest security versions. + bugs: + - | + Users could not sign in to {% data variables.product.prodname_ghe_server %} through SAML when their identity provider returned a NameID that differed from the stored mapping only by letter case or accent marks. + known_issues: + - | + During an upgrade of {% data variables.product.prodname_ghe_server %}, custom firewall rules are removed. If you use custom firewall rules, you must reapply them after upgrading. + - | + If the root site administrator is locked out of the {% data variables.enterprise.management_console %} after failed login attempts, the account does not unlock automatically after the defined lockout time. Someone with administrative SSH access to the instance must unlock the account using the administrative shell. For more information, see [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-web-ui/troubleshooting-access-to-the-management-console#unlocking-the-root-site-administrator-account). + - | + {% data reusables.release-notes.large-adoc-files-issue %} + - | + Admin stats REST API endpoints may time out on appliances with many users or repositories. Retrying the request until data is returned is advised. + - | + When following the steps for [AUTOTITLE](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-the-primary-database-node-mysql-or-mysql-and-mssql), running `ghe-cluster-config-apply` might fail with errors. If this occurs, re-running `ghe-cluster-config-apply` is expected to succeed. + - | + Running a config apply as part of the steps for [Replacing a node in an emergency](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-a-node-in-an-emergency) may fail with errors if the node being replaced is still reachable. If this occurs, shut down the node and repeat the steps. + - | + When restoring data originally backed up from a 3.13 or greater appliance version, the Elasticsearch indices need to be reindexed before some of the data will show up. This happens via a scheduled job that runs on the first Saturday of each month. It can also be forced by running `/usr/local/share/enterprise/ghe-es-search-repair`. + - | + When initializing a new GHES cluster, nodes with the `consul-server` role should be added to the cluster before adding additional nodes. Adding all nodes simultaneously creates a race condition between nomad server registration and nomad client registration. + - | + In a cluster, the host running restore requires access to the storage nodes via their private IPs. + - | + After a restore, existing outside collaborators cannot be added to repositories in a new organization. This issue can be resolved by running `/usr/local/share/enterprise/ghe-es-search-repair` on the appliance. + - | + After a geo-replica is promoted to be a primary by running `ghe-repl-promote`, the actions workflow of a repository does not have any suggested workflows. + - | + On instances with multiple Git storage nodes in a voting configuration, including cluster and geo-replication high availability topologies, upgrading may fail to correctly install Actions that ship with the new version. In some cases, previous versions of these Actions remain on the instance. To resolve this issue, run the following commands on the primary node: `ghe-config --unset 'app.actions.actions-repos-sha1sum'`, `ghe-config-apply`, and `/usr/local/share/enterprise/ghe-run-init-actions-graph`. + - | + When an administrator restores a backup with `ghe-restore` to a configured standalone instance with Replication Controller enabled, `ghe-restore` may skip storage data, such as avatars and attachments, and still complete successfully. The restore output includes `Warning: no routes found, skipping storage restore ...`. If you see this warning or storage data is missing after a restore, contact {% data variables.contact.github_support %}. + - | + After a restart, an instance can remain unavailable with "Starting..." displayed in the web interface. To recover, an administrator can connect using administrative SSH and rerun `ghe-config-apply`. This provides temporary recovery but does not prevent the issue from recurring. This issue is resolved in {% data variables.product.prodname_ghe_server %} 3.21.0 and later. + - | + `ghe-storage-extend` will fail for disks with a sector size greater than 1KiB, most notably with Azure Premium SSD v2 disks. This is due to an upstream bug with `resize2fs` when resizing a mounted disk. diff --git a/data/release-notes/enterprise-server/3-21/11.yml b/data/release-notes/enterprise-server/3-21/11.yml new file mode 100644 index 000000000000..a3acc7453bba --- /dev/null +++ b/data/release-notes/enterprise-server/3-21/11.yml @@ -0,0 +1,45 @@ +date: '2026-11-22' +sections: + security_fixes: + - | + **CRITICAL**: {% data variables.product.github %} has updated Ruby to fix [several announced vulnerabilities](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/). Where an update was not immediately possible, mitigations were introduced at the application level. + - | + **HIGH**: {% data variables.product.github %} mitigated CVE-2026-114938, a vulnerability in the Java runtime bundled with Elasticsearch, by configuring Elasticsearch to start with `-XX:UseAVX=2` on x86-64 appliances. + - | + **HIGH**: An unauthenticated attacker could cause a denial of service by sending crafted HTTP/2 traffic that crashed HAProxy. HAProxy has been updated to version 2.8.32. + - | + Grafana was updated to 12.4.15 to address security vulnerabilities. + - | + Packages have been updated to the latest security versions. + bugs: + - | + Users could not sign in to {% data variables.product.prodname_ghe_server %} through SAML when their identity provider returned a NameID that differed from the stored mapping only by letter case or accent marks. + known_issues: + - | + During an upgrade of {% data variables.product.prodname_ghe_server %}, custom firewall rules are removed. If you use custom firewall rules, you must reapply them after upgrading. + - | + If the root site administrator is locked out of the {% data variables.enterprise.management_console %} after failed login attempts, the account does not unlock automatically after the defined lockout time. Someone with administrative SSH access to the instance must unlock the account using the administrative shell. For more information, see [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-web-ui/troubleshooting-access-to-the-management-console#unlocking-the-root-site-administrator-account). + - | + {% data reusables.release-notes.large-adoc-files-issue %} + - | + Admin stats REST API endpoints may time out on appliances with many users or repositories. Retrying the request until data is returned is advised. + - | + When following the steps for [AUTOTITLE](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-the-primary-database-node-mysql-or-mysql-and-mssql), running `ghe-cluster-config-apply` might fail with errors. If this occurs, re-running `ghe-cluster-config-apply` is expected to succeed. + - | + Running a config apply as part of the steps for [Replacing a node in an emergency](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-a-node-in-an-emergency) may fail with errors if the node being replaced is still reachable. If this occurs, shut down the node and repeat the steps. + - | + When restoring data originally backed up from a 3.13 or greater appliance version, the Elasticsearch indices need to be reindexed before some of the data will show up. This happens via a scheduled job that runs on the first Saturday of each month. It can also be forced by running `/usr/local/share/enterprise/ghe-es-search-repair`. + - | + When initializing a new GHES cluster, nodes with the `consul-server` role should be added to the cluster before adding additional nodes. Adding all nodes simultaneously creates a race condition between nomad server registration and nomad client registration. + - | + In a cluster, the host running restore requires access to the storage nodes via their private IPs. + - | + After a restore, existing outside collaborators cannot be added to repositories in a new organization. This issue can be resolved by running `/usr/local/share/enterprise/ghe-es-search-repair` on the appliance. + - | + After a geo-replica is promoted to be a primary by running `ghe-repl-promote`, the actions workflow of a repository does not have any suggested workflows. + - | + On instances with multiple Git storage nodes in a voting configuration, including cluster and geo-replication high availability topologies, upgrading may fail to correctly install Actions that ship with the new version. In some cases, previous versions of these Actions remain on the instance. To resolve this issue, run the following commands on the primary node: `ghe-config --unset 'app.actions.actions-repos-sha1sum'`, `ghe-config-apply`, and `/usr/local/share/enterprise/ghe-run-init-actions-graph`. + - | + When an administrator restores a backup with `ghe-restore` to a configured standalone instance with Replication Controller enabled, `ghe-restore` may skip storage data, such as avatars and attachments, and still complete successfully. The restore output includes `Warning: no routes found, skipping storage restore ...`. If you see this warning or storage data is missing after a restore, contact {% data variables.contact.github_support %}. + - | + `ghe-storage-extend` will fail for disks with a sector size greater than 1KiB, most notably with Azure Premium SSD v2 disks. This is due to an upstream bug with `resize2fs` when resizing a mounted disk. diff --git a/data/release-notes/enterprise-server/3-22/6.yml b/data/release-notes/enterprise-server/3-22/6.yml new file mode 100644 index 000000000000..19260dd7afa4 --- /dev/null +++ b/data/release-notes/enterprise-server/3-22/6.yml @@ -0,0 +1,43 @@ +date: '2026-11-22' +sections: + security_fixes: + - | + **CRITICAL**: {% data variables.product.github %} has updated Ruby to fix [several announced vulnerabilities](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/). Where an update was not immediately possible, mitigations were introduced at the application level. + - | + **HIGH**: {% data variables.product.github %} mitigated CVE-2026-114938, a vulnerability in the Java runtime bundled with Elasticsearch, by configuring Elasticsearch to start with `-XX:UseAVX=2` on x86-64 appliances. + - | + **HIGH**: An unauthenticated attacker could cause a denial of service by sending crafted HTTP/2 traffic that crashed HAProxy. HAProxy has been updated to version 2.8.32. + - | + Grafana was updated to 12.4.15 to address security vulnerabilities. + - | + Packages have been updated to the latest security versions. + bugs: + - | + Users could not sign in to {% data variables.product.prodname_ghe_server %} through SAML when their identity provider returned a NameID that differed from the stored mapping only by letter case or accent marks. + known_issues: + - | + During an upgrade of {% data variables.product.prodname_ghe_server %}, custom firewall rules are removed. If you use custom firewall rules, you must reapply them after upgrading. + - | + If the root site administrator is locked out of the {% data variables.enterprise.management_console %} after failed login attempts, the account does not unlock automatically after the defined lockout time. Someone with administrative SSH access to the instance must unlock the account using the administrative shell. For more information, see [AUTOTITLE](/admin/administering-your-instance/administering-your-instance-from-the-web-ui/troubleshooting-access-to-the-management-console#unlocking-the-root-site-administrator-account). + - | + {% data reusables.release-notes.large-adoc-files-issue %} + - | + Admin stats REST API endpoints may time out on appliances with many users or repositories. Retrying the request until data is returned is advised. + - | + When following the steps for [AUTOTITLE](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-the-primary-database-node-mysql-or-mysql-and-mssql), running `ghe-cluster-config-apply` might fail with errors. If this occurs, re-running `ghe-cluster-config-apply` is expected to succeed. + - | + Running a config apply as part of the steps for [Replacing a node in an emergency](/admin/monitoring-and-managing-your-instance/configuring-clustering/replacing-a-cluster-node#replacing-a-node-in-an-emergency) may fail with errors if the node being replaced is still reachable. If this occurs, shut down the node and repeat the steps. + - | + When restoring data originally backed up from a 3.13 or greater appliance version, the Elasticsearch indices need to be reindexed before some of the data will show up. This happens via a scheduled job that runs on the first Saturday of each month. It can also be forced by running `/usr/local/share/enterprise/ghe-es-search-repair`. + - | + When initializing a new GHES cluster, nodes with the `consul-server` role should be added to the cluster before adding additional nodes. Adding all nodes simultaneously creates a race condition between nomad server registration and nomad client registration. + - | + In a cluster, the host running restore requires access to the storage nodes via their private IPs. + - | + After a restore, existing outside collaborators cannot be added to repositories in a new organization. This issue can be resolved by running `/usr/local/share/enterprise/ghe-es-search-repair` on the appliance. + - | + After a geo-replica is promoted to be a primary by running `ghe-repl-promote`, the actions workflow of a repository does not have any suggested workflows. + - | + On instances with multiple Git storage nodes in a voting configuration, including cluster and geo-replication high availability topologies, upgrading may fail to correctly install Actions that ship with the new version. In some cases, previous versions of these Actions remain on the instance. To resolve this issue, run the following commands on the primary node: `ghe-config --unset 'app.actions.actions-repos-sha1sum'`, `ghe-config-apply`, and `/usr/local/share/enterprise/ghe-run-init-actions-graph`. + - | + `ghe-storage-extend` will fail for disks with a sector size greater than 1KiB, most notably with Azure Premium SSD v2 disks. This is due to an upstream bug with `resize2fs` when resizing a mounted disk. From 7036b057b6f2cb8dda3a1cbbecf21cb781735fd9 Mon Sep 17 00:00:00 2001 From: astropedrito <96799026+astropedrito@users.noreply.github.com> Date: Mon, 23 Nov 2026 07:42:51 +0000 Subject: [PATCH 3/7] Update documentation on linking issues to pull requests (#64762) Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../using-issues/linking-a-pull-request-to-an-issue.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md b/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md index 48f0333b521b..d22913fe8e9d 100644 --- a/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md +++ b/content/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue.md @@ -21,7 +21,7 @@ category: ## About linked issues and pull requests -You can link an issue to a pull request manually or using a supported keyword in the pull request description, that is, the summary text added by the author when they created the pull request. +You can link up to 10 issues to a pull request and up to 10 pull requests to an issue manually or using a supported keyword in the pull request description, that is, the summary text added by the author when they created the pull request. When you link a pull request to the issue the pull request addresses, collaborators can see that someone is working on the issue. From bb23fa0b63421b5335f8f8575429bfe72b146236 Mon Sep 17 00:00:00 2001 From: docs-bot <77750099+docs-bot@users.noreply.github.com> Date: Mon, 23 Nov 2026 09:44:12 +0000 Subject: [PATCH 4/7] Copilot CLI: Update integrations and remote control articles (#64828) Co-authored-by: github-actions[bot] Co-authored-by: hubwriter --- .../browse-issues-prs-gists.md | 21 +++++++------- .../use-copilot-cli/steer-remotely.md | 28 +++++++++++-------- .../use-copilot-cli/voice-input.md | 2 +- 3 files changed, 28 insertions(+), 23 deletions(-) diff --git a/content/copilot/how-tos/copilot-cli/use-copilot-cli/browse-issues-prs-gists.md b/content/copilot/how-tos/copilot-cli/use-copilot-cli/browse-issues-prs-gists.md index 287a281510d5..4e6d97448d80 100644 --- a/content/copilot/how-tos/copilot-cli/use-copilot-cli/browse-issues-prs-gists.md +++ b/content/copilot/how-tos/copilot-cli/use-copilot-cli/browse-issues-prs-gists.md @@ -13,8 +13,9 @@ docsTeamMetrics: - copilot-cli --- -By default, interactive {% data variables.copilot.copilot_cli_short %} sessions for Git repositories have four tabs at the top of the screen: -* **Session**: The regular chat experience where you enter prompts for {% data variables.product.prodname_copilot_short %}. +By default, interactive {% data variables.copilot.copilot_cli_short %} sessions have five tabs at the top of the screen: +* **Current**: The regular chat experience where you enter prompts for {% data variables.product.prodname_copilot_short %}. +* **Sessions**: Browse and switch between sessions. * **Issues**: Open issues in the current repository on {% data variables.product.prodname_dotcom %}. * **Pull requests**: Open pull requests in the current repository on {% data variables.product.prodname_dotcom %}. * **Gists**: Your gists on {% data variables.product.prodname_dotcom %}. @@ -26,7 +27,7 @@ The **Issues**, **Pull requests**, and **Gists** tabs let you browse content fro * **Jump to an item on {% data variables.product.prodname_dotcom_the_website %}** — for example when you want to comment on an issue, merge a pull request, or edit a gist. > [!NOTE] -> The **Issues** and **Pull requests** tabs are only shown when {% data variables.copilot.copilot_cli_short %} is running inside a {% data variables.product.prodname_dotcom %} repository. In other directories, only the **Session** and **Gists** tabs are shown. +> The **Issues** and **Pull requests** tabs are only available when {% data variables.copilot.copilot_cli_short %} is running inside a {% data variables.product.prodname_dotcom %} repository. In other directories, these tabs remain visible but are grayed out and cannot be selected. ## Switching between tabs @@ -47,7 +48,7 @@ The **Issues**, **Pull requests**, and **Gists** tabs all use the same controls. * Use Shift+↑ and Shift+↓ to move to the previous or next page in a multi-page list. * Press Enter to display a detailed view of the highlighted item. Press Esc in the details view to return to the list. * Press o to open the highlighted item (or, in the detailed view, the current item) on {% data variables.product.prodname_dotcom_the_website %}. -* Press c to insert a reference to the item into the prompt input area and jump back to the **Session** tab. +* Press c to insert a reference to the item into the prompt input area and jump back to the **Current** tab. * Press / (on the **Issues** and **Pull requests** tabs) to filter the list with your own search terms. Type your terms, press Enter to run the search, and Esc to cancel or clear it. For the full set of keypresses you can use, see [Keyboard reference](#keyboard-reference) at the end of this article. @@ -58,7 +59,7 @@ The **Issues** tab lists the **open** issues in the current repository that invo The {% data variables.product.prodname_dotcom %} search query used to populate the list is shown above it. Press a to toggle between showing only issues that involve you and showing every open issue in the repository. -Pressing c inserts a reference to the issue into the prompt box on the **Session** tab. You can then enter a prompt that relates to this issue. For example: +Pressing c inserts a reference to the issue into the prompt box on the **Current** tab. You can then enter a prompt that relates to this issue. For example: ```copilot #1234 suggest a fix for this bug @@ -70,7 +71,7 @@ The **Pull requests** tab lists the **open** pull requests in the current reposi The {% data variables.product.prodname_dotcom %} search query used to populate the list is shown above it. Press a to toggle between showing only pull requests that involve you and showing every open pull request in the repository. -Pressing c inserts a reference to the pull request into the prompt box on the **Session** tab. You can then enter a prompt that relates to this pull request. For example: +Pressing c inserts a reference to the pull request into the prompt box on the **Current** tab. You can then enter a prompt that relates to this pull request. For example: ```copilot #5678 check this out and run tests @@ -90,7 +91,7 @@ Your search terms are added to the qualifiers the tab already applies, so result The **Gists** tab lists the gists owned by the {% data variables.product.prodname_dotcom %} account you are signed in to. Both public and secret gists are shown. Unlike the **Issues** and **Pull requests** tabs, the **Gists** tab is not scoped to a repository—it is always available, regardless of where you started the CLI. -Pressing c inserts the gist's URL into the prompt box on the **Session** tab. You can then enter a prompt that relates to this gist. For example: +Pressing c inserts the gist's URL into the prompt box on the **Current** tab. You can then enter a prompt that relates to this gist. For example: ```copilot https://gist.github.com/USERNAME/GIST-ID summarize this @@ -130,8 +131,8 @@ You can reorder, hide, or turn off the tabs in your settings file (`~/.copilot/s ``` * `enabled`: set to `false` to turn off the tabbed interface entirely. -* `sort`: the order in which tabs appear. Use the identifiers `copilot` (the **Session** tab), `issues`, `pull-requests`, and `gists`. Any tabs you omit keep their default order after the ones you list. Unknown identifiers are ignored. -* `hide`: tabs to hide, using the same identifiers. The **Session** tab (`copilot`) cannot be hidden. +* `sort`: the order in which tabs appear. Use the identifiers `copilot` (the **Current** tab), `agents` (the **Sessions** tab), `issues`, `pull-requests`, and `gists`. Any tabs you omit keep their default order after the ones you list. Unknown identifiers are ignored. +* `hide`: tabs to hide, using the same identifiers. The **Current** tab (`copilot`) cannot be hidden. ## Keyboard reference @@ -144,7 +145,7 @@ The footer hint bar in the **Issues**, **Pull requests**, and **Gists** tabs sum | Shift+↓ / Shift+↑ | List view | Display the next or previous page in a multi-page list. | | Enter | List view | Open the details view for the highlighted item. | | o | List view or details view | Open the highlighted item on {% data variables.product.prodname_dotcom_the_website %} in your browser. | -| c | List view or details view | Insert a reference to the item into the prompt input area and jump back to the **Session** tab. | +| c | List view or details view | Insert a reference to the item into the prompt input area and jump back to the **Current** tab. | | a | List view on **Issues** and **Pull requests** tabs | Toggle between showing only items that involve you and showing every open item in the repository. | | / | List view on **Issues** and **Pull requests** tabs | Open a search box. | | Enter | Search box | Run the search query. | diff --git a/content/copilot/how-tos/copilot-cli/use-copilot-cli/steer-remotely.md b/content/copilot/how-tos/copilot-cli/use-copilot-cli/steer-remotely.md index b9fa2fb517c2..0d16cb25cb72 100644 --- a/content/copilot/how-tos/copilot-cli/use-copilot-cli/steer-remotely.md +++ b/content/copilot/how-tos/copilot-cli/use-copilot-cli/steer-remotely.md @@ -37,16 +37,20 @@ This article explains how to enable and use remote control. For more conceptual You can enable remote control in several ways: * With a slash command during an interactive session. -* By configuring the CLI to enable remote control by default for all interactive sessions. +* By configuring the CLI to enable remote control by default for new interactive sessions. * From JetBrains IDE settings before you start a session. ### Using the `/remote` slash command -If you are already in an interactive session and want to enable remote control, enter: +If you are already in an interactive session and want to enable remote control: -```copilot copy -/remote on -``` +1. Enter `/environments` and select **Incoming connections**. +1. Set **Accept remote connections** to **On** and wait for the remote access status to show **On**. +1. Return to your session and enter: + + ```copilot copy + /remote on + ``` The CLI connects to {% data variables.product.prodname_dotcom_the_website %} and displays details for accessing the session remotely—see [Accessing a session from {% data variables.product.prodname_dotcom_the_website %}](#accessing-a-session-from-githubcom) and [Accessing a session from {% data variables.product.prodname_mobile %}](#accessing-a-session-from-github-mobile) later in this article. @@ -54,13 +58,13 @@ You can use the `/remote` slash command without an argument to check the current ### Configuring remote control to always be enabled -If you always want your interactive CLI sessions to be remotely accessible, add the following to your {% data variables.product.prodname_copilot_short %} settings file (typically located at `~/.copilot/settings.json`): +To make new interactive CLI sessions remotely accessible by default: + +1. Enter `/environments` and select **Incoming connections**. +1. Set **Accept remote connections** to **On**. +1. Set **Publish new sessions by default** to **On**. -```json copy -{ - "remoteSessions": true -} -``` +These preferences are saved for future CLI runs. To enable remote control for an existing session, use `/remote on`. ### Using JetBrains IDE settings @@ -143,7 +147,7 @@ On {% data variables.product.prodname_dotcom_the_website %}, a message tells you ## Preventing remote control -Remote control is disabled by default, but may be enabled in your {% data variables.product.prodname_copilot_short %} settings file (typically `~/.copilot/settings.json`). You can ensure a session is not remotely controllable by removing the `"remoteSessions": true` setting from `~/.copilot/settings.json`, or setting it to `false`. +Remote control is disabled by default. To stop sharing the current session, enter `/remote off`. To disable incoming account connections on this machine, enter `/environments`, select **Incoming connections**, and set **Accept remote connections** to **Off**. Set **Publish new sessions by default** to **Off** to stop automatically sharing new sessions. Enterprise owners can also restrict remote control of sessions hosted on your device using enterprise managed settings, regardless of your personal settings. Depending on the configured policy, remote control of sessions on your device may be disabled entirely, or only available to a controlling client that is SSO-authorized for specific organizations. This doesn't affect your ability to remotely control your own sessions hosted on other devices. See [AUTOTITLE](/copilot/reference/enterprise-administrators/enterprise-managed-settings). diff --git a/content/copilot/how-tos/copilot-cli/use-copilot-cli/voice-input.md b/content/copilot/how-tos/copilot-cli/use-copilot-cli/voice-input.md index b1ee6a496d02..9dd0aa5a4ed2 100644 --- a/content/copilot/how-tos/copilot-cli/use-copilot-cli/voice-input.md +++ b/content/copilot/how-tos/copilot-cli/use-copilot-cli/voice-input.md @@ -66,7 +66,7 @@ Rather than holding down the space bar, you can toggle voice recording on and of > In some terminals, you can use Ctrl+Space as an alternative. This shortcut only works if your terminal and OS pass it through. You may also need to free it in your terminal or OS key bindings. 1. Speak your prompt. -1. Press any key to stop recording and insert the transcription. +1. Press a letter key to stop recording and insert the transcription. Pressing Esc cancels the recording instead. ### Cleaning up voice-entered prompts From 49bd442a7ad011afcac867c42abda6c59038a1ff Mon Sep 17 00:00:00 2001 From: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com> Date: Mon, 23 Nov 2026 10:05:45 +0000 Subject: [PATCH 5/7] Clarify Copilot access timing for enterprise team removals (#64768) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../create-enterprise-teams.md | 2 +- .../manage-for-enterprise/manage-access/grant-access.md | 2 +- .../manage-for-organization/manage-access/revoke-access.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/create-enterprise-teams.md b/content/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/create-enterprise-teams.md index ea2759a8f7a5..263f7a077e1d 100644 --- a/content/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/create-enterprise-teams.md +++ b/content/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/create-enterprise-teams.md @@ -89,7 +89,7 @@ For example: ## 4. Grant access to {% data variables.product.prodname_copilot_short %} -You can assign {% data variables.product.prodname_copilot %} licenses to an enterprise team. This allows you to manage {% data variables.product.prodname_copilot_short %} access through team membership, independent of organizations. Once you have assigned licenses to a team, users will gain or lose access to {% data variables.product.prodname_copilot_short %} when they are added or removed from the team. For instructions, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/grant-access#assigning-seats-directly). +You can assign {% data variables.product.prodname_copilot %} licenses to an enterprise team. This allows you to manage {% data variables.product.prodname_copilot_short %} access through team membership, independent of organizations. Once you have assigned licenses to a team, users gain access immediately when they are added to the team. When they are removed, their seat is unassigned, but they can continue to use {% data variables.product.prodname_copilot_short %} until the end of the billing cycle. For instructions, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/grant-access#assigning-seats-directly). As an opt-in preview, you can also grant enterprise teams access to specific {% data variables.product.prodname_copilot_short %} models. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-availability-of-default-models). diff --git a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/grant-access.md b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/grant-access.md index 14e658651b2b..b2b4e21e5157 100644 --- a/content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/grant-access.md +++ b/content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/grant-access.md @@ -35,7 +35,7 @@ The available assignment methods depend on your enterprise's plan or billing mod With {% data variables.product.prodname_copilot_short %} access or {% data variables.copilot.copilot_business_short %}, enterprise owners can assign seats directly to individual members or enterprise teams. With {% data variables.product.prodname_copilot_short %} access, you can also assign seats to all members of an organization. For guidance on organizing members before assignment, see [AUTOTITLE](/enterprise-cloud@latest/admin/concepts/enterprise-best-practices/organize-work). -When you assign seats to an enterprise team, each member receives a seat. Users receive or lose access when they are added or removed from the team. If you use {% data variables.product.prodname_emus %}, you can sync the team with an identity provider (IdP) group and manage licensing from your IdP. +When you assign seats to an enterprise team, each member receives a seat. Users gain access immediately when they are added to the team. When they are removed, their seat is unassigned, but they can continue to use {% data variables.product.prodname_copilot_short %} until the end of the billing cycle. If you use {% data variables.product.prodname_emus %}, you can sync the team with an identity provider (IdP) group and manage licensing from your IdP. ### Prerequisites diff --git a/content/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/revoke-access.md b/content/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/revoke-access.md index d2de015f550f..607d07528b19 100644 --- a/content/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/revoke-access.md +++ b/content/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/revoke-access.md @@ -22,7 +22,7 @@ category: On {% data variables.copilot.copilot_business_short %} and {% data variables.copilot.copilot_enterprise_short %}, organization owners can revoke seats assigned through their organization using the procedures below. This only removes access for people who receive {% data variables.product.prodname_copilot_short %} through that organization. -If a person also has access through an enterprise team or as an individual, they will retain it. To remove access for those users, an enterprise owner must remove them from the enterprise team or unassign their license in the enterprise settings, which revokes access immediately. +If a person also has access through an enterprise team or as an individual, they will retain it. When an enterprise owner removes someone from an enterprise team or unassigns their license, the user can continue to use {% data variables.product.prodname_copilot_short %} until the end of the billing cycle. For more information, see [AUTOTITLE](/copilot/reference/copilot-billing/license-changes#copilot-access). To end access immediately, remove the user from the enterprise, or suspend or deprovision them through SCIM in your identity provider. For people whose access is revoked through organization-level revocation, the removal takes effect from the start of the next billing cycle. If you remove a seat during a cycle, the user will have access to {% data variables.product.prodname_copilot_short %} for the remainder of the billing cycle. For more information, see [AUTOTITLE](/billing/concepts/product-billing/github-copilot-licenses). From 528871b7d9904b5c16766e2d5bcab14c4a9a7fc6 Mon Sep 17 00:00:00 2001 From: Anne-Marie <102995847+am-stead@users.noreply.github.com> Date: Mon, 23 Nov 2026 13:35:31 +0000 Subject: [PATCH 6/7] Use product variables for AI Scan feature names (#64801) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> --- ...curity-and-analysis-for-your-enterprise.md | 8 +-- .../billing/concepts/budgets-and-alerts.md | 6 +- .../github-advanced-security.md | 6 +- .../products/view-productlicense-use.md | 2 +- content/billing/how-tos/set-up-budgets.md | 10 +-- ...applications-scanning-for-pull-requests.md | 10 +-- .../ai-powered-security-detections.md | 68 +++++++++---------- .../code-scanning/ai-scan-for-repositories.md | 43 ++++++------ .../concepts/code-scanning/ai-scan.md | 27 ++++---- .../code-scanning/code-scanning-alerts.md | 2 +- .../code-scanning-on-pull-requests.md | 14 ++-- .../security-at-scale/security-overview.md | 2 +- .../github-security-features.md | 2 +- ...quickstart-for-securing-your-repository.md | 2 +- .../assess-alerts.md | 2 +- .../viewing-and-managing-ai-scan-alerts.md | 14 ++-- .../configure-global-settings.md | 18 ++--- .../analyze-organization-data/export-data.md | 4 +- ...viewing-metrics-for-pull-request-alerts.md | 8 +-- .../viewing-security-insights.md | 2 +- .../overview-dashboard-filters.md | 2 +- .../overview-dashboard-metrics.md | 12 ++-- .../secure-code-from-commit-to-production.md | 2 +- .../about-github-advanced-security.md | 2 +- .../code-scanning/ai-scan-billing-credits.md | 2 +- .../ai-scan-for-repositories-preview.md | 2 +- .../code-scanning/ai-scan-model-policies.md | 2 +- .../using-security-overview-coverage.md | 2 +- data/variables/product.yml | 3 + 29 files changed, 142 insertions(+), 137 deletions(-) diff --git a/content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise.md b/content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise.md index 2779755a8d38..0577a475b7b2 100644 --- a/content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise.md +++ b/content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise.md @@ -142,20 +142,20 @@ Across all of your enterprise's organizations, you can allow or disallow people {% ifversion ai-powered-security-detections %} -## Enforcing a policy to manage AI Scan in your enterprise's repositories +## Enforcing a policy to manage {% data variables.product.prodname_ai_scan %} in your enterprise's repositories -As an enterprise owner, you can control whether organizations in your enterprise can enable AI Scan. This policy is set to "Not allowed" by default. +As an enterprise owner, you can control whether organizations in your enterprise can enable {% data variables.product.prodname_ai_scan %}. This policy is set to "Not allowed" by default. {% ifversion ai-applications-scanning %} This same policy also controls {% data variables.product.prodname_ai_applications_scanning %}; there's no separate enterprise-level policy for that detector. {% endif %} -Allowing this policy does not enable AI Scan{% ifversion ai-applications-scanning %} or {% data variables.product.prodname_ai_applications_scanning %}{% endif %} for any organization. Organization administrators must separately enable {% ifversion ai-applications-scanning %}each detector{% else %}AI Scan{% endif %} for their organization. Eligible repositories where {% data variables.product.prodname_code_scanning %} is enabled inherit the organization setting, and repository administrators can opt out for individual repositories{% ifversion ai-applications-scanning %}, for each detector{% endif %}. +Allowing this policy does not enable {% data variables.product.prodname_ai_scan %}{% ifversion ai-applications-scanning %} or {% data variables.product.prodname_ai_applications_scanning %}{% endif %} for any organization. Organization administrators must separately enable {% ifversion ai-applications-scanning %}each detector{% else %}{% data variables.product.prodname_ai_scan %}{% endif %} for their organization. Eligible repositories where {% data variables.product.prodname_code_scanning %} is enabled inherit the organization setting, and repository administrators can opt out for individual repositories{% ifversion ai-applications-scanning %}, for each detector{% endif %}. {% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.policies-tab %} {% data reusables.enterprise-accounts.code-security-and-analysis-policies %} -1. Under "AI Scan", select the dropdown menu and click a policy. +1. Under "{% data variables.product.prodname_ai_scan %}", select the dropdown menu and click a policy. {% ifversion ai-applications-scanning %} For information about enabling {% data variables.product.prodname_ai_applications_scanning %} at the organization level, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests#how-to-enable-ai-applications-scanning). diff --git a/content/billing/concepts/budgets-and-alerts.md b/content/billing/concepts/budgets-and-alerts.md index bf10a30aadca..5f52ee79e739 100644 --- a/content/billing/concepts/budgets-and-alerts.md +++ b/content/billing/concepts/budgets-and-alerts.md @@ -21,11 +21,11 @@ For metered products such as {% data variables.product.prodname_actions %}, {% d {% ifversion fpt or ghec %} -The bundled {% data variables.product.prodname_ai_credits_short %} budget controls metered spending across all AI-credit SKUs. You can also create a SKU-level budget for **Code Security AI Credits** to control spending on AI Scan and agentic autofix. +The bundled {% data variables.product.prodname_ai_credits_short %} budget controls metered spending across all AI-credit SKUs. You can also create a SKU-level budget for **Code Security AI Credits** to control spending on {% data variables.product.prodname_ai_scan %} and agentic autofix. -When no Code Security AI Credits quota remains because of a hard budget, AI Scan cannot produce findings and agentic autofix cannot start a session. Usage resumes when the limiting budget is increased or a new billing cycle begins. +When no Code Security AI Credits quota remains because of a hard budget, {% data variables.product.prodname_ai_scan %} cannot produce findings and agentic autofix cannot start a session. Usage resumes when the limiting budget is increased or a new billing cycle begins. -Hard budgets for Code Security AI Credits limit AI feature usage, not enablement. Reaching a budget limit does not prevent administrators from enabling AI Scan or agentic autofix. +Hard budgets for Code Security AI Credits limit AI feature usage, not enablement. Reaching a budget limit does not prevent administrators from enabling {% data variables.product.prodname_ai_scan %} or agentic autofix. By contrast, a hard budget for active-committer licenses prevents enabling {% data variables.product.prodname_code_security %} or {% data variables.product.prodname_secret_protection %} on additional repositories. It does not disable these products in repositories where they are already enabled. diff --git a/content/billing/concepts/product-billing/github-advanced-security.md b/content/billing/concepts/product-billing/github-advanced-security.md index 090628aef624..9344b3b58b11 100644 --- a/content/billing/concepts/product-billing/github-advanced-security.md +++ b/content/billing/concepts/product-billing/github-advanced-security.md @@ -68,17 +68,17 @@ Some {% data variables.product.prodname_AS %} features consume {% data variables ### Code Security AI Credits -AI Scan and agentic autofix consume the **{% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %}** SKU, even in public repositories that don't require active-committer licenses. +{% data variables.product.prodname_ai_scan %} and agentic autofix consume the **{% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %}** SKU, even in public repositories that don't require active-committer licenses. If the account being billed has included {% data variables.product.prodname_ai_credits_short %} from a {% data variables.product.prodname_copilot %} entitlement, eligible usage draws from that allowance first. After the included allowance is exhausted, further usage is metered. If the account doesn't have included {% data variables.product.prodname_ai_credits_short %}, all usage is metered. For an organization-owned repository, usage is attributed to the account that pays for the organization's usage: the standalone organization account or its enterprise account. -AI Scan and agentic autofix are not currently available for repositories in the personal namespace of a {% data variables.enterprise.prodname_managed_user %}, so they don't consume {% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %} there. Purchasing {% data variables.product.prodname_code_security %}, having included {% data variables.product.prodname_ai_credits_short %}, or configuring a {% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %} budget does not make these features available. +{% data variables.product.prodname_ai_scan %} and agentic autofix are not currently available for repositories in the personal namespace of a {% data variables.enterprise.prodname_managed_user %}, so they don't consume {% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %} there. Purchasing {% data variables.product.prodname_code_security %}, having included {% data variables.product.prodname_ai_credits_short %}, or configuring a {% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %} budget does not make these features available. This limitation does not affect classic {% data variables.copilot.copilot_autofix_short %}, which is distinct from agentic autofix and does not consume {% data variables.product.prodname_ai_credits_short %}. -Before security administrators enable AI Scan or agentic autofix broadly, billing administrators should review the account's included {% data variables.product.prodname_ai_credits_short %} and set a hard budget to cap metered usage. For more information, see [AUTOTITLE](/billing/concepts/budgets-and-alerts). +Before security administrators enable {% data variables.product.prodname_ai_scan %} or agentic autofix broadly, billing administrators should review the account's included {% data variables.product.prodname_ai_credits_short %} and set a hard budget to cap metered usage. For more information, see [AUTOTITLE](/billing/concepts/budgets-and-alerts). For information about features that consume {% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %}, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections) and [AUTOTITLE](/code-security/concepts/code-scanning/autofix-for-code-scanning). diff --git a/content/billing/how-tos/products/view-productlicense-use.md b/content/billing/how-tos/products/view-productlicense-use.md index ec835b016069..af0eca025829 100644 --- a/content/billing/how-tos/products/view-productlicense-use.md +++ b/content/billing/how-tos/products/view-productlicense-use.md @@ -96,7 +96,7 @@ The metered usage chart and usage break down table both show your current choice If your account uses {% data variables.product.prodname_ai_credits_short %}, an additional **AI usage** view is listed under **Usage**. You can use this view to understand included and metered usage across products, including {% data variables.product.prodname_copilot_short %} and {% data variables.product.prodname_AS %}. -To review combined AI Scan and agentic autofix usage, open the **AI usage** view, under "Group by," select **Products**, then review **{% data variables.product.prodname_AS %}**. These features share the Code Security AI Credits SKU, so their usage is reported together within the product total, not as separate totals for each feature. +To review combined {% data variables.product.prodname_ai_scan %} and agentic autofix usage, open the **AI usage** view, under "Group by," select **Products**, then review **{% data variables.product.prodname_AS %}**. These features share the Code Security AI Credits SKU, so their usage is reported together within the product total, not as separate totals for each feature. You can use the view to answer questions such as: diff --git a/content/billing/how-tos/set-up-budgets.md b/content/billing/how-tos/set-up-budgets.md index 58c9b5140cbd..dd721cfd2cfb 100644 --- a/content/billing/how-tos/set-up-budgets.md +++ b/content/billing/how-tos/set-up-budgets.md @@ -49,14 +49,14 @@ For {% data variables.product.prodname_copilot_short %} under usage-based billin For {% data variables.product.prodname_AS %} AI features, choose the budget that matches the spending you want to control: -* Use a **Bundled {% data variables.product.prodname_ai_credits_short %} budget** to set one spending limit across all features that use {% data variables.product.prodname_ai_credits_short %}. If **Stop usage when budget limit is reached** is enabled, usage by another product can exhaust this budget and stop AI Scan and agentic autofix. -* Use a **Code Security AI Credits** SKU-level budget to set an independent spending limit for AI Scan and agentic autofix. +* Use a **Bundled {% data variables.product.prodname_ai_credits_short %} budget** to set one spending limit across all features that use {% data variables.product.prodname_ai_credits_short %}. If **Stop usage when budget limit is reached** is enabled, usage by another product can exhaust this budget and stop {% data variables.product.prodname_ai_scan %} and agentic autofix. +* Use a **Code Security AI Credits** SKU-level budget to set an independent spending limit for {% data variables.product.prodname_ai_scan %} and agentic autofix. Usually, choose one of these budgets as your primary control. If both hard budgets apply, exhausting either budget blocks further Code Security AI Credits usage. -When no Code Security AI Credits quota remains because of a hard budget, AI Scan fails and agentic autofix cannot start a session. Usage resumes when the limiting budget is increased or a new billing cycle begins. +When no Code Security AI Credits quota remains because of a hard budget, {% data variables.product.prodname_ai_scan %} fails and agentic autofix cannot start a session. Usage resumes when the limiting budget is increased or a new billing cycle begins. -For more information about AI Scan, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). +For more information about {% data variables.product.prodname_ai_scan %}, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). {% endif %} @@ -129,7 +129,7 @@ As the owner of an enterprise or organization account, or as a billing manager, 1. Under "Budget Type" select **Product-level budget**, **SKU-level budget**, or **Bundled {% data variables.product.prodname_ai_credits_short %} budget**. * **Product-level budget**: Limits spending on a single product (for example, {% data variables.product.prodname_codespaces %}). - * **SKU-level budget**: Limits spending on a specific SKU within a product, such as {% data variables.copilot.copilot_code-review_short %}, {% data variables.product.prodname_secret_protection %} {% data variables.product.prodname_ai_credits_short %}, or {% data variables.product.prodname_GH_secret_protection %} within {% data variables.product.prodname_GHAS %}. For AI Scan and agentic autofix, select {% data variables.product.prodname_AS %} and the **Code Security AI Credits** SKU. + * **SKU-level budget**: Limits spending on a specific SKU within a product, such as {% data variables.copilot.copilot_code-review_short %}, {% data variables.product.prodname_secret_protection %} {% data variables.product.prodname_ai_credits_short %}, or {% data variables.product.prodname_GH_secret_protection %} within {% data variables.product.prodname_GHAS %}. For {% data variables.product.prodname_ai_scan %} and agentic autofix, select {% data variables.product.prodname_AS %} and the **Code Security AI Credits** SKU. * **Bundled {% data variables.product.prodname_ai_credits_short %} budget**: Limits total overage spending across all SKUs that consume {% data variables.product.prodname_ai_credits_short %}, including {% data variables.product.prodname_copilot_short %}, {% data variables.copilot.copilot_cloud_agent %}, {% data variables.product.prodname_spark_short %}, and {% data variables.product.prodname_AS %} AI features. Each SKU uses the shared {% data variables.product.prodname_ai_credits_short %} allowance before generating overage. After the allowance is exhausted, overage from every SKU counts toward the applicable **All {% data variables.product.prodname_ai_credits_short %}** budget. To also limit overage for a specific SKU, create a SKU-level budget for that SKU. Available where overage spend is enabled. 1. Under "Budget scope", set the scope of spending for this budget. diff --git a/content/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests.md b/content/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests.md index fe9e4330edcd..b17311c3351d 100644 --- a/content/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests.md +++ b/content/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests.md @@ -22,7 +22,7 @@ category: * **Sensitive information disclosure:** When an AI application can expose sensitive information, such as credentials, personal data, or confidential business data. * **Excessive agency:** When an AI application or agent has excessive functionality, permissions, or autonomy that could allow it to perform unintended or harmful actions. -This detector is separate from {% data variables.product.prodname_codeql %}-based code scanning and from AI Scan for pull requests, {% data variables.product.github %}'s other AI-based code scanning detector on pull requests. AI Scan for pull requests focuses on traditional code security vulnerabilities, while {% data variables.product.prodname_ai_applications_scanning %} focuses on vulnerabilities specific to AI applications and agents, such as prompt injection and excessive agency. If your organization builds AI applications or agents, evaluate both. For more information about AI Scan for pull requests, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). +This detector is separate from {% data variables.product.prodname_codeql %}-based code scanning and from {% data variables.product.prodname_ai_scan_for_pull_requests %}, {% data variables.product.github %}'s other AI-based code scanning detector on pull requests. {% data variables.product.prodname_ai_scan_for_pull_requests %} focuses on traditional code security vulnerabilities, while {% data variables.product.prodname_ai_applications_scanning %} focuses on vulnerabilities specific to AI applications and agents, such as prompt injection and excessive agency. If your organization builds AI applications or agents, evaluate both. For more information about {% data variables.product.prodname_ai_scan_for_pull_requests %}, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). ## How it works @@ -39,7 +39,7 @@ Findings from {% data variables.product.prodname_ai_applications_scanning %} app * "AI app" label and thumbs up/down feedback control * A dismiss button -As with AI Scan, these findings are advisory. They don't block a pull request from being merged. +As with {% data variables.product.prodname_ai_scan_for_pull_requests %}, these findings are advisory. They don't block a pull request from being merged. {% data variables.copilot.copilot_autofix_short %} suggestions are generated automatically for findings from this detector. This behavior is independent of the Code Scanning Autofix setting, which controls {% data variables.copilot.copilot_autofix_short %} for {% data variables.product.prodname_codeql %} results. @@ -49,17 +49,17 @@ During {% data variables.release-phases.public_preview %}, {% data variables.pro This detector covers pull requests only. It doesn't scan your full repository or existing backlog for AI application risks. -As with AI Scan for pull requests, this detector doesn't run on pull requests from forks or pull requests created by {% data variables.product.prodname_dependabot %}, and its findings can't be used in rulesets to enforce merge requirements. +As with {% data variables.product.prodname_ai_scan_for_pull_requests %}, this detector doesn't run on pull requests from forks or pull requests created by {% data variables.product.prodname_dependabot %}, and its findings can't be used in rulesets to enforce merge requirements. ## How to enable {% data variables.product.prodname_ai_applications_scanning %} {% data variables.product.prodname_ai_applications_scanning %} is off by default at the enterprise, organization, and repository level. -* **Enterprise**: Enablement is controlled by the shared **AI Scan** enterprise policy. Enterprise owners can allow organizations to enable AI-powered code scanning features, including {% data variables.product.prodname_ai_applications_scanning %}. See [AUTOTITLE](/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). +* **Enterprise**: Enablement is controlled by the shared **{% data variables.product.prodname_ai_scan %}** enterprise policy. Enterprise owners can allow organizations to enable AI-powered code scanning features, including {% data variables.product.prodname_ai_applications_scanning %}. See [AUTOTITLE](/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). * **Organization**: Organization owners can enable **Scan for AI applications** for eligible repositories where it's allowed. See [AUTOTITLE](/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings#enabling-ai-applications-scanning). * **Repository**: Repository administrators can opt out for individual repositories once their organization allows it. -If your organization already has AI Scan for pull requests enabled, or you're moving from the private preview of {% data variables.product.prodname_ai_applications_scanning %}, you still need to separately enable **Scan for AI applications** at the organization level. Enabling AI Scan for pull requests doesn't enable {% data variables.product.prodname_ai_applications_scanning %}, and the reverse is also true. Both features share the same enterprise-level policy, but organizations must enable each one separately. +If your organization already has {% data variables.product.prodname_ai_scan_for_pull_requests %} enabled, or you're moving from the private preview of {% data variables.product.prodname_ai_applications_scanning %}, you still need to separately enable **Scan for AI applications** at the organization level. Enabling {% data variables.product.prodname_ai_scan_for_pull_requests %} doesn't enable {% data variables.product.prodname_ai_applications_scanning %}, and the reverse is also true. Both features share the same enterprise-level policy, but organizations must enable each one separately. ## Billing diff --git a/content/code-security/concepts/code-scanning/ai-powered-security-detections.md b/content/code-security/concepts/code-scanning/ai-powered-security-detections.md index 7cc0405c8425..8cda933ed602 100644 --- a/content/code-security/concepts/code-scanning/ai-powered-security-detections.md +++ b/content/code-security/concepts/code-scanning/ai-powered-security-detections.md @@ -1,8 +1,8 @@ --- title: AI Scan for pull requests -shortTitle: AI Scan for pull requests +shortTitle: '{% data variables.product.prodname_ai_scan_for_pull_requests %}' allowTitleToDifferFromFilename: true -intro: 'AI Scan uses an AI-based scanning engine to find security vulnerabilities in pull requests for languages and frameworks not covered by {% data variables.product.prodname_codeql %}.' +intro: '{% data variables.product.prodname_ai_scan %} uses an AI-based scanning engine to find security vulnerabilities in pull requests for languages and frameworks not covered by {% data variables.product.prodname_codeql %}.' versions: feature: ai-powered-security-detections contentType: concepts @@ -10,11 +10,11 @@ category: - Find and fix code vulnerabilities --- -AI Scan for pull requests produces additional security findings with an AI-based scanning engine that runs on pull requests and complements {% data variables.product.prodname_codeql %}. +{% data variables.product.prodname_ai_scan_for_pull_requests %} produces additional security findings with an AI-based scanning engine that runs on pull requests and complements {% data variables.product.prodname_codeql %}. -AI Scan expands {% data variables.product.prodname_code_scanning %} coverage for pull requests without requiring a separate scanning tool or build configuration. +{% data variables.product.prodname_ai_scan %} expands {% data variables.product.prodname_code_scanning %} coverage for pull requests without requiring a separate scanning tool or build configuration. -AI Scan for pull requests is one of the independently controlled features grouped under **AI Scan** in {% data variables.product.github %} settings. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan). +{% data variables.product.prodname_ai_scan_for_pull_requests %} is one of the independently controlled features grouped under **{% data variables.product.prodname_ai_scan %}** in {% data variables.product.github %} settings. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan). ## Availability @@ -22,13 +22,13 @@ Availability depends on who owns the repository and its visibility. {% data reusables.code-scanning.ai-scan-availability %} -AI Scan for pull requests is not available for repositories in a {% data variables.enterprise.prodname_managed_user %}'s personal namespace, even if {% data variables.product.prodname_code_scanning %} is enabled for the repository. +{% data variables.product.prodname_ai_scan_for_pull_requests %} is not available for repositories in a {% data variables.enterprise.prodname_managed_user %}'s personal namespace, even if {% data variables.product.prodname_code_scanning %} is enabled for the repository. -You do not need a {% data variables.product.prodname_copilot %} license to use AI Scan. +You do not need a {% data variables.product.prodname_copilot %} license to use {% data variables.product.prodname_ai_scan %}. ## Billing -AI Scan usage is separate from active-committer licensing and is reported under the **{% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %}** SKU. Usage begins only when a qualifying pull request is scanned. +{% data variables.product.prodname_ai_scan %} usage is separate from active-committer licensing and is reported under the **{% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %}** SKU. Usage begins only when a qualifying pull request is scanned. For organization-owned repositories, usage is billed to the account responsible for the organization's billing. @@ -38,27 +38,27 @@ For organization-owned repositories, usage is billed to the account responsible For details about the billing model, see [AUTOTITLE](/billing/concepts/product-billing/github-advanced-security#how-ai-feature-usage-is-billed). -## How AI Scan works +## How {% data variables.product.prodname_ai_scan %} works -AI Scan runs automatically when all the following conditions are met: +{% data variables.product.prodname_ai_scan %} runs automatically when all the following conditions are met: * {% data variables.product.prodname_code_scanning_caps %} is enabled for the repository. -* The repository's AI Scan on pull requests setting is enabled. +* The repository's {% data variables.product.prodname_ai_scan %} on pull requests setting is enabled. * A pull request that is not from a fork or created by {% data variables.product.prodname_dependabot %} contains changes in a supported language or framework that {% data variables.product.prodname_codeql %} does not cover. Scans run when a pull request is created and after each new commit, as they do for {% data variables.product.prodname_codeql %}. -AI Scan does not require {% data variables.product.prodname_codeql %} default setup and does not depend on the state of {% data variables.product.prodname_codeql %} analysis. If {% data variables.product.prodname_codeql %} analysis fails or is in a waiting state, AI Scan will still run. +{% data variables.product.prodname_ai_scan %} does not require {% data variables.product.prodname_codeql %} default setup and does not depend on the state of {% data variables.product.prodname_codeql %} analysis. If {% data variables.product.prodname_codeql %} analysis fails or is in a waiting state, {% data variables.product.prodname_ai_scan %} will still run. -Results are posted to the pull request as they are found. If the {% data variables.product.prodname_codeql %} scan takes longer to complete, you may see AI Scan findings before {% data variables.product.prodname_codeql %} results appear, or vice versa. +Results are posted to the pull request as they are found. If the {% data variables.product.prodname_codeql %} scan takes longer to complete, you may see {% data variables.product.prodname_ai_scan %} findings before {% data variables.product.prodname_codeql %} results appear, or vice versa. Findings are advisory. They do not fail the **{% data variables.product.prodname_code_scanning_caps %}** check and cannot block pull request merges through ruleset requirements. They provide signals about where code security can be improved without interrupting your workflow. The scanning engine analyzes pull request code without requiring a build system and may use code search to gather more context from the repository before flagging an issue. It uses specialized prompts, not custom instruction files such as `/.github/copilot-instructions.md` or `/CLAUDE.md`. -## How AI Scan findings appear on pull requests +## How {% data variables.product.prodname_ai_scan %} findings appear on pull requests -AI Scan findings appear alongside {% data variables.product.prodname_codeql %} alerts on the **Conversation** and **Files changed** tabs of a pull request. Each finding is labeled with an "AI" indicator so you can distinguish it from {% data variables.product.prodname_codeql %} alerts. +{% data variables.product.prodname_ai_scan %} findings appear alongside {% data variables.product.prodname_codeql %} alerts on the **Conversation** and **Files changed** tabs of a pull request. Each finding is labeled with an "AI" indicator so you can distinguish it from {% data variables.product.prodname_codeql %} alerts. Each finding describes the security issue and explains the risk. Most findings also include a suggested remediation. When available, {% data variables.copilot.copilot_autofix_short %} recommends a code change, as it does for {% data variables.product.prodname_codeql %} alerts. @@ -66,21 +66,21 @@ You can use the thumbs up or thumbs down control to provide feedback and help im ## Limitations -* AI Scan findings cannot yet be used in rulesets to enforce merge requirements. -* AI Scan does not run on pull requests from forks or pull requests created by {% data variables.product.prodname_dependabot %}. +* {% data variables.product.prodname_ai_scan %} findings cannot yet be used in rulesets to enforce merge requirements. +* {% data variables.product.prodname_ai_scan %} does not run on pull requests from forks or pull requests created by {% data variables.product.prodname_dependabot %}. * Self-hosted runners are not supported. * Detection categories and supported languages may change as the feature evolves. -* As with any AI-based tool, AI Scan findings may include false positives. Use the feedback mechanism to report inaccurate results. +* As with any AI-based tool, {% data variables.product.prodname_ai_scan %} findings may include false positives. Use the feedback mechanism to report inaccurate results. ## Supported languages -AI Scan on pull requests supports selected languages and frameworks that {% data variables.product.prodname_codeql %} does not currently cover. Examples include PHP, Shell/Bash, Terraform configuration (HCL), Dockerfiles, JSP for Java, and Blazor for C#. +{% data variables.product.prodname_ai_scan %} on pull requests supports selected languages and frameworks that {% data variables.product.prodname_codeql %} does not currently cover. Examples include PHP, Shell/Bash, Terraform configuration (HCL), Dockerfiles, JSP for Java, and Blazor for C#. To check whether {% data variables.product.prodname_codeql %} supports a language, see [AUTOTITLE](/code-security/concepts/code-scanning/codeql/codeql-code-scanning). ## Detection categories -AI Scan currently classifies findings into the following categories. Coverage may change as the feature evolves. +{% data variables.product.prodname_ai_scan %} currently classifies findings into the following categories. Coverage may change as the feature evolves. * **String injection** — Unsafe string-built SQL, HTML, shell, JSON, or YAML with missing or incorrect escaping or sanitization. * **Weak cryptography** — Weak algorithms, small keys, insecure randomness, missing encryption, or weak password hashing. @@ -92,35 +92,35 @@ AI Scan currently classifies findings into the following categories. Coverage ma * **Server-side request forgery (SSRF)** — Server fetches attacker-controlled URLs, hosts, or protocols. * **Supply chain risks** — Unpinned third-party actions, packages, or images, or downloads without integrity checks. -## Enabling AI Scan +## Enabling {% data variables.product.prodname_ai_scan %} {% ifversion ai-applications-scanning %} -AI Scan for pull requests and {% data variables.product.prodname_ai_applications_scanning %} are separate features under AI Scan. {% data variables.product.prodname_ai_applications_scanning %} has its own **Scan for AI applications** control and detects risks such as indirect prompt injection in AI applications and agents. Enabling either feature doesn't enable the other. For more information about {% data variables.product.prodname_ai_applications_scanning %}, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests). +{% data variables.product.prodname_ai_scan_for_pull_requests %} and {% data variables.product.prodname_ai_applications_scanning %} are separate features under {% data variables.product.prodname_ai_scan %}. {% data variables.product.prodname_ai_applications_scanning %} has its own **Scan for AI applications** control and detects risks such as indirect prompt injection in AI applications and agents. Enabling either feature doesn't enable the other. For more information about {% data variables.product.prodname_ai_applications_scanning %}, see [AUTOTITLE](/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests). {% endif %} -Before enabling AI Scan on pull requests for an organization, confirm repository eligibility, review the billing account's included {% data variables.product.prodname_ai_credits_short %}, and configure budgets for metered usage. +Before enabling {% data variables.product.prodname_ai_scan %} on pull requests for an organization, confirm repository eligibility, review the billing account's included {% data variables.product.prodname_ai_credits_short %}, and configure budgets for metered usage. -Enabling the organization setting enables AI Scan immediately for all eligible repositories where {% data variables.product.prodname_code_scanning %} is enabled. Repository administrators can then opt out, but qualifying pull requests can consume Code Security AI Credits before they do. +Enabling the organization setting enables {% data variables.product.prodname_ai_scan %} immediately for all eligible repositories where {% data variables.product.prodname_code_scanning %} is enabled. Repository administrators can then opt out, but qualifying pull requests can consume Code Security AI Credits before they do. -You do not need to select a model to enable AI Scan. +You do not need to select a model to enable {% data variables.product.prodname_ai_scan %}. > [!NOTE] > {% data reusables.code-scanning.ai-scan-model-policies %} -* **Enterprise**: Enterprise owners can allow or prevent organizations from enabling AI Scan. The policy is set to "Not allowed" by default. This policy controls both AI Scan on pull requests and AI Scan for a repository's backlog. Allowing AI Scan does not enable it automatically. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). -* **Organization**: Organization owners and security managers can enable AI Scan for pull requests for eligible repositories. Repositories inherit the organization setting. See [AUTOTITLE](/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings#enabling-ai-scan-for-pull-requests). -* **Organization-owned repository**: People with admin access to the repository can opt out when the organization has enabled AI Scan. They cannot opt in when the organization setting is disabled. -* **Public repository owned by a personal account**: People with admin access to the repository enable or disable AI Scan directly by using the **AI Scan for pull requests** toggle under "{% data variables.product.prodname_code_scanning_caps %}". +* **Enterprise**: Enterprise owners can allow or prevent organizations from enabling {% data variables.product.prodname_ai_scan %}. The policy is set to "Not allowed" by default. This policy controls both {% data variables.product.prodname_ai_scan %} on pull requests and {% data variables.product.prodname_ai_scan %} for a repository's backlog. Allowing {% data variables.product.prodname_ai_scan %} does not enable it automatically. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). +* **Organization**: Organization owners and security managers can enable {% data variables.product.prodname_ai_scan_for_pull_requests %} for eligible repositories. Repositories inherit the organization setting. See [AUTOTITLE](/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings#enabling-ai-scan-for-pull-requests). +* **Organization-owned repository**: People with admin access to the repository can opt out when the organization has enabled {% data variables.product.prodname_ai_scan %}. They cannot opt in when the organization setting is disabled. +* **Public repository owned by a personal account**: People with admin access to the repository enable or disable {% data variables.product.prodname_ai_scan %} directly by using the **{% data variables.product.prodname_ai_scan_for_pull_requests %}** toggle under "{% data variables.product.prodname_code_scanning_caps %}". -Organization owners and security managers can review the effective enablement status of AI Scan for pull requests in the "Coverage" view of security overview. See [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/assessing-adoption-code-security). +Organization owners and security managers can review the effective enablement status of {% data variables.product.prodname_ai_scan_for_pull_requests %} in the "Coverage" view of security overview. See [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/assessing-adoption-code-security). -People with access to security overview can also monitor AI Scan findings across an organization or enterprise: +People with access to security overview can also monitor {% data variables.product.prodname_ai_scan %} findings across an organization or enterprise: -* The **Prevention** tab on the overview dashboard shows trends in AI Scan findings, how many findings were resolved, and how often developers accepted a {% data variables.copilot.copilot_autofix_short %} suggestion. -* The **AI Scan** tab in the "Code scanning on pull requests" report shows findings over time, the availability of {% data variables.copilot.copilot_autofix_short %} suggestions, and the outcomes of findings with and without suggestions. +* The **Prevention** tab on the overview dashboard shows trends in {% data variables.product.prodname_ai_scan %} findings, how many findings were resolved, and how often developers accepted a {% data variables.copilot.copilot_autofix_short %} suggestion. +* The **{% data variables.product.prodname_ai_scan %}** tab in the "Code scanning on pull requests" report shows findings over time, the availability of {% data variables.copilot.copilot_autofix_short %} suggestions, and the outcomes of findings with and without suggestions. For more information, see [AUTOTITLE](/code-security/concepts/code-scanning/code-scanning-on-pull-requests). -You can use the REST API to manage the organization or repository AI Scan setting. Use the `pr_scan` property to enable or disable AI Scan for pull requests.{% ifversion ai-scan-for-repositories %} The same endpoints manage AI Scan for repositories through the `repository_scan` property.{% endif %} See {% ifversion ai-scan-for-repositories %}[AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories#managing-ai-scan-for-repositories-with-the-rest-api) and {% endif %} [AUTOTITLE](/rest/code-scanning/code-scanning#get-the-ai-scan-setting-for-an-organization). +You can use the REST API to manage the organization or repository {% data variables.product.prodname_ai_scan %} setting. Use the `pr_scan` property to enable or disable {% data variables.product.prodname_ai_scan_for_pull_requests %}.{% ifversion ai-scan-for-repositories %} The same endpoints manage {% data variables.product.prodname_ai_scan_for_repositories %} through the `repository_scan` property.{% endif %} See {% ifversion ai-scan-for-repositories %}[AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories#managing-ai-scan-for-repositories-with-the-rest-api) and {% endif %} [AUTOTITLE](/rest/code-scanning/code-scanning#get-the-ai-scan-setting-for-an-organization). diff --git a/content/code-security/concepts/code-scanning/ai-scan-for-repositories.md b/content/code-security/concepts/code-scanning/ai-scan-for-repositories.md index 09db1ae4b98d..c9d20e42a64e 100644 --- a/content/code-security/concepts/code-scanning/ai-scan-for-repositories.md +++ b/content/code-security/concepts/code-scanning/ai-scan-for-repositories.md @@ -1,6 +1,7 @@ --- title: AI Scan for a repository's backlog -shortTitle: AI Scan for repositories +shortTitle: '{% data variables.product.prodname_ai_scan_for_repositories %}' +allowTitleToDifferFromFilename: true intro: 'Find additional security vulnerabilities across languages and manage the results in your existing {% data variables.product.prodname_code_scanning %} backlog.' versions: feature: ai-scan-for-repositories @@ -12,9 +13,9 @@ category: > [!NOTE] > {% data reusables.code-scanning.ai-scan-for-repositories-preview %} -AI Scan for repositories uses a proprietary harness that leverages multiple models, when available, to find security vulnerabilities on your repository's default branch. It supports all languages, extending coverage beyond {% data variables.product.prodname_codeql %}-supported languages and finding additional vulnerabilities in languages {% data variables.product.prodname_codeql %} already analyzes. You run scans on demand, independently of {% data variables.product.prodname_codeql %}. +{% data variables.product.prodname_ai_scan_for_repositories %} uses a proprietary harness that leverages multiple models, when available, to find security vulnerabilities on your repository's default branch. It supports all languages, extending coverage beyond {% data variables.product.prodname_codeql %}-supported languages and finding additional vulnerabilities in languages {% data variables.product.prodname_codeql %} already analyzes. You run scans on demand, independently of {% data variables.product.prodname_codeql %}. -AI Scan for repositories adds findings to your {% data variables.product.prodname_code_scanning %} backlog alongside {% data variables.product.prodname_codeql %} alerts. You can use existing workflows to assign alerts, apply {% data variables.copilot.agentic_autofix %}, include alerts in security campaigns, and link them to issues. +{% data variables.product.prodname_ai_scan_for_repositories %} adds findings to your {% data variables.product.prodname_code_scanning %} backlog alongside {% data variables.product.prodname_codeql %} alerts. You can use existing workflows to assign alerts, apply {% data variables.copilot.agentic_autofix %}, include alerts in security campaigns, and link them to issues. ## Availability @@ -26,7 +27,7 @@ You do not need a {% data variables.product.prodname_copilot %} license. ## Billing -You run AI Scan for repositories on demand, and each scan consumes **{% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %}**. This usage is separate from active-committer licensing. +You run {% data variables.product.prodname_ai_scan_for_repositories %} on demand, and each scan consumes **{% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %}**. This usage is separate from active-committer licensing. Usage is billed to the account responsible for the organization's billing. @@ -34,23 +35,23 @@ Usage is billed to the account responsible for the organization's billing. {% data reusables.code-scanning.ai-scan-billing-credits %} -AI scan for repositories has some limits to prevent it from consuming very high amounts of budget. Detection steps are limited to 30 minutes and 150,000 {% data variables.product.prodname_ai_credits_short %}. +{% data variables.product.prodname_ai_scan_for_repositories %} has some limits to prevent it from consuming very high amounts of budget. Detection steps are limited to 30 minutes and 150,000 {% data variables.product.prodname_ai_credits_short %}. For more information, see [AUTOTITLE](/billing/concepts/product-billing/github-advanced-security#how-ai-feature-usage-is-billed). -## How AI Scan works +## How {% data variables.product.prodname_ai_scan_for_repositories %} works Users with **write access** to a repository manually trigger a scan of the repository's default branch. The AI agent searches across the repository to identify files and functions to examine. It selects code for further analysis rather than reading every file in full. The agent runs within a time budget. When that budget is exhausted, it stops searching and reports its findings. -AI Scan runs independently of {% data variables.product.prodname_codeql %}. If the repository already has {% data variables.product.prodname_codeql %} alerts, AI Scan uses those alerts to suppress matching findings. +{% data variables.product.prodname_ai_scan_for_repositories %} runs independently of {% data variables.product.prodname_codeql %}. If the repository already has {% data variables.product.prodname_codeql %} alerts, {% data variables.product.prodname_ai_scan %} uses those alerts to suppress matching findings. -## How AI Scan findings appear in the code scanning backlog +## How {% data variables.product.prodname_ai_scan %} findings appear in the code scanning backlog -When a scan finishes, its findings appear as alerts in the repository's {% data variables.product.prodname_code_scanning %} alert list, under the **Security and quality** tab, alongside alerts from {% data variables.product.prodname_codeql %}. You can filter the list by the **AI Scan** tool to focus on these findings. +When a scan finishes, its findings appear as alerts in the repository's {% data variables.product.prodname_code_scanning %} alert list, under the **Security and quality** tab, alongside alerts from {% data variables.product.prodname_codeql %}. You can filter the list by the **{% data variables.product.prodname_ai_scan %}** tool to focus on these findings. Use the existing alert severity filters to prioritize findings for assessment. You can assign alerts, link them to issues, include them in security campaigns, or use {% data variables.copilot.agentic_autofix %} to help remediate them. See [AUTOTITLE](/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/assess-alerts). -During {% data variables.release-phases.public_preview %}, merging a potential fix does not automatically trigger another AI Scan. You must manually trigger a new scan to check for resolved alerts. +During {% data variables.release-phases.public_preview %}, merging a potential fix does not automatically trigger another {% data variables.product.prodname_ai_scan %}. You must manually trigger a new scan to check for resolved alerts. The alert will only close automatically if the applied fix changes the exact line of code that triggered the alert. Otherwise, you must manually close the alert. @@ -67,28 +68,28 @@ For guidance on using AI-powered security features responsibly, see [AUTOTITLE]( ## Supported languages -AI Scan for repositories supports all languages, including languages already supported by {% data variables.product.prodname_codeql %}. Use it alongside {% data variables.product.prodname_codeql %} to find additional vulnerabilities, or to extend scanning coverage to languages that {% data variables.product.prodname_codeql %} does not support. +{% data variables.product.prodname_ai_scan_for_repositories %} supports all languages, including languages already supported by {% data variables.product.prodname_codeql %}. Use it alongside {% data variables.product.prodname_codeql %} to find additional vulnerabilities, or to extend scanning coverage to languages that {% data variables.product.prodname_codeql %} does not support. -## Enabling AI Scan for repositories +## Enabling {% data variables.product.prodname_ai_scan_for_repositories %} > [!NOTE] > {% data reusables.code-scanning.ai-scan-model-policies %} -Before enabling AI Scan for repositories, confirm repository eligibility, review the billing account's included {% data variables.product.prodname_ai_credits_short %}, and configure budgets for metered usage. +Before enabling {% data variables.product.prodname_ai_scan_for_repositories %}, confirm repository eligibility, review the billing account's included {% data variables.product.prodname_ai_credits_short %}, and configure budgets for metered usage. -* **Enterprise**: Enterprise owners can allow or prevent organizations from enabling AI Scan for repositories. This policy controls both AI Scan on pull requests and AI Scan for a repository's backlog. The policy is set to "Not allowed" by default. Allowing AI Scan does not enable it automatically. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). -* **Organization**: Organization owners and security managers can enable AI Scan for repositories for eligible repositories. Repositories inherit the organization setting. After enabling the setting, you can start one-off scans of up to 20 repositories. See [AUTOTITLE](/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings#enabling-ai-scan-for-repositories). -* **Organization-owned repository**: People with admin access to the repository can opt out when the organization has enabled AI Scan. They cannot opt in when the organization setting is disabled. To disable the feature, go to the repository's "Settings" page, under "{% data variables.product.prodname_AS %}", then under "{% data variables.product.UI_code_security_scanning %}", toggle off **AI Scan for repositories**. +* **Enterprise**: Enterprise owners can allow or prevent organizations from enabling {% data variables.product.prodname_ai_scan_for_repositories %}. This policy controls both {% data variables.product.prodname_ai_scan %} on pull requests and {% data variables.product.prodname_ai_scan %} for a repository's backlog. The policy is set to "Not allowed" by default. Allowing {% data variables.product.prodname_ai_scan %} does not enable it automatically. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). +* **Organization**: Organization owners and security managers can enable {% data variables.product.prodname_ai_scan_for_repositories %} for eligible repositories. Repositories inherit the organization setting. After enabling the setting, you can start one-off scans of up to 20 repositories. See [AUTOTITLE](/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings#enabling-ai-scan-for-repositories). +* **Organization-owned repository**: People with admin access to the repository can opt out when the organization has enabled {% data variables.product.prodname_ai_scan %}. They cannot opt in when the organization setting is disabled. To disable the feature, go to the repository's "Settings" page, under "{% data variables.product.prodname_AS %}", then under "{% data variables.product.UI_code_security_scanning %}", toggle off **{% data variables.product.prodname_ai_scan_for_repositories %}**. -### Managing AI Scan for repositories with the REST API +### Managing {% data variables.product.prodname_ai_scan_for_repositories %} with the REST API -You can use the REST API to read and update the AI Scan for repositories setting for an organization or a repository. Set the `repository_scan` property to `enabled` or `disabled`. The API follows the same rules as the settings page: +You can use the REST API to read and update the {% data variables.product.prodname_ai_scan_for_repositories %} setting for an organization or a repository. Set the `repository_scan` property to `enabled` or `disabled`. The API follows the same rules as the settings page: -* Enabling the setting for an organization enables AI Scan for repositories for its eligible repositories. Repository administrators can opt out. +* Enabling the setting for an organization enables {% data variables.product.prodname_ai_scan_for_repositories %} for its eligible repositories. Repository administrators can opt out. * If the organization setting is disabled, you cannot enable the setting for a repository in that organization. -* If your enterprise policy does not allow AI Scan, requests to enable the setting fail with a `422` response. +* If your enterprise policy does not allow {% data variables.product.prodname_ai_scan %}, requests to enable the setting fail with a `422` response. -You can update `repository_scan` and `pr_scan` (AI Scan for pull requests) in the same request. If either change cannot be applied, the request fails and neither setting changes. +You can update `repository_scan` and `pr_scan` ({% data variables.product.prodname_ai_scan_for_pull_requests %}) in the same request. If either change cannot be applied, the request fails and neither setting changes. Enabling the setting does not start a scan. Users with write access still run scans on demand. diff --git a/content/code-security/concepts/code-scanning/ai-scan.md b/content/code-security/concepts/code-scanning/ai-scan.md index 4e2525de7e3e..3b518dc206c1 100644 --- a/content/code-security/concepts/code-scanning/ai-scan.md +++ b/content/code-security/concepts/code-scanning/ai-scan.md @@ -1,7 +1,8 @@ --- title: About AI Scan -shortTitle: AI Scan -intro: 'AI Scan extends {% data variables.product.prodname_code_scanning %} with AI-based detection to help find security vulnerabilities.' +shortTitle: '{% data variables.product.prodname_ai_scan %}' +allowTitleToDifferFromFilename: true +intro: '{% data variables.product.prodname_ai_scan %} extends {% data variables.product.prodname_code_scanning %} with AI-based detection to help find security vulnerabilities.' versions: feature: ai-powered-security-detections contentType: concepts @@ -10,21 +11,21 @@ category: - Move review earlier and make it smarter --- -AI Scan is a set of AI-powered scanning capabilities that complement {% data variables.product.prodname_codeql %}. The capabilities differ in their scope: +{% data variables.product.prodname_ai_scan %} is a set of AI-powered scanning capabilities that complement {% data variables.product.prodname_codeql %}. The capabilities differ in their scope: -* **AI Scan for repositories** scans a repository’s default branch on demand across all languages, including languages already supported by {% data variables.product.prodname_codeql %}. -* **AI Scan for pull requests** currently finds general security vulnerabilities in selected languages and frameworks not covered by {% data variables.product.prodname_codeql %}. -* **Scan for AI applications** finds risks specific to AI applications and agents, such as indirect prompt injection, independently of {% data variables.product.prodname_codeql %} language coverage. +* **{% data variables.product.prodname_ai_scan_for_repositories %}** scans a repository’s default branch on demand across all languages, including languages already supported by {% data variables.product.prodname_codeql %}. +* **{% data variables.product.prodname_ai_scan_for_pull_requests %}** currently finds general security vulnerabilities in selected languages and frameworks not covered by {% data variables.product.prodname_codeql %}. +* **{% data variables.product.prodname_ai_applications_scanning %}** finds risks specific to AI applications and agents, such as indirect prompt injection, independently of {% data variables.product.prodname_codeql %} language coverage. Each feature has its own coverage, availability, and billing requirements. {% ifversion ai-scan-for-repositories %} -## AI Scan for repositories +## {% data variables.product.prodname_ai_scan_for_repositories %} {% data reusables.code-scanning.ai-scan-for-repositories-preview %} -AI Scan for repositories finds security vulnerabilities across your repository's default branch, in any language. It extends coverage beyond {% data variables.product.prodname_codeql %}-supported languages and can find additional vulnerabilities in languages {% data variables.product.prodname_codeql %} already analyzes. +{% data variables.product.prodname_ai_scan_for_repositories %} finds security vulnerabilities across your repository's default branch, in any language. It extends coverage beyond {% data variables.product.prodname_codeql %}-supported languages and can find additional vulnerabilities in languages {% data variables.product.prodname_codeql %} already analyzes. Users with write access run scans on demand. Findings are added to your {% data variables.product.prodname_code_scanning %} backlog alongside {% data variables.product.prodname_codeql %} alerts, where you can assign them, link them to issues, include them in security campaigns, or use {% data variables.copilot.agentic_autofix %} to help fix them. @@ -36,7 +37,7 @@ For more information, including availability, billing, limitations, and enableme ### General code security vulnerabilities -**AI Scan for pull requests** finds security vulnerabilities in pull request changes for selected languages and frameworks not covered by {% data variables.product.prodname_codeql %}. Examples include PHP and Terraform configuration (HCL). +**{% data variables.product.prodname_ai_scan_for_pull_requests %}** finds security vulnerabilities in pull request changes for selected languages and frameworks not covered by {% data variables.product.prodname_codeql %}. Examples include PHP and Terraform configuration (HCL). When enabled, it scans eligible pull requests when they are created and after each new commit. Findings appear alongside {% data variables.product.prodname_codeql %} alerts with an "AI" label. @@ -46,7 +47,7 @@ For more information, including coverage, availability, billing, and enablement ### AI application and agent risks -**Scan for AI applications** finds security risks in AI applications and agents in pull requests, initially focusing on indirect prompt injection. +**{% data variables.product.prodname_ai_applications_scanning %}** finds security risks in AI applications and agents in pull requests, initially focusing on indirect prompt injection. When enabled, the detector scans eligible pull requests when they are created and after each new commit. Findings appear as comments on the pull request. @@ -54,14 +55,14 @@ For more information, including coverage, availability, billing, and enablement {% endif %} -## Managing AI Scan +## Managing {% data variables.product.prodname_ai_scan %} -For enterprises, a shared **AI Scan** policy controls whether organizations can enable these features. Allowing AI Scan does not automatically enable any feature. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). +For enterprises, a shared **{% data variables.product.prodname_ai_scan %}** policy controls whether organizations can enable these features. Allowing {% data variables.product.prodname_ai_scan %} does not automatically enable any feature. See [AUTOTITLE](/enterprise-cloud@latest/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-security-and-analysis-for-your-enterprise#enforcing-a-policy-to-manage-ai-scan-in-your-enterprises-repositories). Organizations enable each feature separately, and repository administrators can opt out for each feature independently. For permissions and setup instructions, see the dedicated article for each feature. {% ifversion ai-scan-for-repositories %} -You can also use the REST API to manage AI Scan for pull requests and AI Scan for repositories at the organization and repository levels, by using the `pr_scan` and `repository_scan` properties. See [AUTOTITLE](/rest/code-scanning/code-scanning#update-the-ai-scan-setting-for-an-organization). +You can also use the REST API to manage {% data variables.product.prodname_ai_scan_for_pull_requests %} and {% data variables.product.prodname_ai_scan_for_repositories %} at the organization and repository levels, by using the `pr_scan` and `repository_scan` properties. See [AUTOTITLE](/rest/code-scanning/code-scanning#update-the-ai-scan-setting-for-an-organization). {% endif %} diff --git a/content/code-security/concepts/code-scanning/code-scanning-alerts.md b/content/code-security/concepts/code-scanning/code-scanning-alerts.md index 5cbfa1cbd492..32aa702208c6 100644 --- a/content/code-security/concepts/code-scanning/code-scanning-alerts.md +++ b/content/code-security/concepts/code-scanning/code-scanning-alerts.md @@ -27,7 +27,7 @@ By default, {% data variables.product.prodname_code_scanning %} analyzes your co {% ifversion ai-scan-for-repositories %} -AI Scan for repositories adds alerts from on-demand scans of your default branch to the same alert list as {% data variables.product.prodname_codeql %}. You can use existing alert assignment, remediation, security campaign, and issue-linking workflows with these alerts. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories). +{% data variables.product.prodname_ai_scan_for_repositories %} adds alerts from on-demand scans of your default branch to the same alert list as {% data variables.product.prodname_codeql %}. You can use existing alert assignment, remediation, security campaign, and issue-linking workflows with these alerts. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories). {% endif %} diff --git a/content/code-security/concepts/code-scanning/code-scanning-on-pull-requests.md b/content/code-security/concepts/code-scanning/code-scanning-on-pull-requests.md index e94bd688f15d..f5b3b6361c21 100644 --- a/content/code-security/concepts/code-scanning/code-scanning-on-pull-requests.md +++ b/content/code-security/concepts/code-scanning/code-scanning-on-pull-requests.md @@ -1,7 +1,7 @@ --- title: Code scanning on pull requests shortTitle: Code scanning on pull requests -intro: Understand how {% data variables.product.prodname_codeql %}{% ifversion ai-powered-security-detections %} and AI Scan{% endif %} find and help prevent vulnerabilities in pull requests across your organizations. +intro: Understand how {% data variables.product.prodname_codeql %}{% ifversion ai-powered-security-detections %} and {% data variables.product.prodname_ai_scan %}{% endif %} find and help prevent vulnerabilities in pull requests across your organizations. permissions: '{% data reusables.permissions.security-overview %}' product: '{% data reusables.gated-features.security-overview-fpt-cs-only %}' contentType: concepts @@ -20,7 +20,7 @@ redirect_from: The "Code scanning on pull requests" report in security overview helps you understand how well {% data variables.product.prodname_code_scanning %} is preventing vulnerabilities in pull requests in your organization or across organizations in your enterprise. You can view the entire dataset or filter for specific criteria, making it easy to identify repositories where you may need to take action to find and reduce security risks. {% ifversion ai-powered-security-detections %} -The report has separate **{% data variables.product.prodname_codeql %}** and **AI Scan** tabs. +The report has separate **{% data variables.product.prodname_codeql %}** and **{% data variables.product.prodname_ai_scan %}** tabs. {% endif %} ## Available metrics @@ -53,17 +53,17 @@ You can also view: {% ifversion ai-powered-security-detections %} -### AI Scan metrics +### {% data variables.product.prodname_ai_scan %} metrics -The **AI Scan** tab shows: +The **{% data variables.product.prodname_ai_scan %}** tab shows: -* **Total findings:** The number of AI Scan findings. +* **Total findings:** The number of {% data variables.product.prodname_ai_scan %} findings. * **Findings with Autofix suggestions:** The number and percentage of findings that had a {% data variables.copilot.copilot_autofix_short %} suggestion. -* **AI Scan findings in pull requests:** A chart that groups findings over time by **Autofix suggested** and **Autofix not suggested**. +* **{% data variables.product.prodname_ai_scan %} findings in pull requests:** A chart that groups findings over time by **Autofix suggested** and **Autofix not suggested**. * **Outcomes of findings with an Autofix suggestion:** The share of findings where a fix was applied or the finding was dismissed. * **Outcomes of findings without an Autofix suggestion:** The share of findings where a fix was applied or the finding was dismissed. -The date range and filters that you select apply to all AI Scan metrics displayed in the report. +The date range and filters that you select apply to all {% data variables.product.prodname_ai_scan %} metrics displayed in the report. {% endif %} diff --git a/content/code-security/concepts/security-at-scale/security-overview.md b/content/code-security/concepts/security-at-scale/security-overview.md index c70ba9d32942..576bd9b6e096 100644 --- a/content/code-security/concepts/security-at-scale/security-overview.md +++ b/content/code-security/concepts/security-at-scale/security-overview.md @@ -76,7 +76,7 @@ Security overview has multiple views that provide different ways to explore enab * **Assessments:** regardless of the enablement status of {% data variables.product.prodname_AS %} features, organizations on {% data variables.product.prodname_team %} and {% data variables.product.prodname_enterprise %} can run a free report to scan the code in the organization for leaked secrets, see [AUTOTITLE](/code-security/concepts/secret-security/secret-security-with-github).{% ifversion security-campaigns %} * **Campaigns:** coordinate and measure targeted remediation efforts, grouping related security tasks across repositories, assigning owners, and tracking progress toward defined risk‑reduction goals.{% endif %} * **Enablement:** see how quickly different teams are adopting security features. -* **{% ifversion ai-powered-security-detections %}Code scanning on pull requests{% else %}{% data variables.product.prodname_codeql %} pull requests{% endif %}:** assess the impact of running {% data variables.product.prodname_codeql %}{% ifversion ai-powered-security-detections %} and AI Scan{% endif %} on pull requests, and how development teams resolve {% ifversion ai-powered-security-detections %}alerts and findings{% else %}{% data variables.product.prodname_code_scanning %} alerts{% endif %}, see [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts). +* **{% ifversion ai-powered-security-detections %}Code scanning on pull requests{% else %}{% data variables.product.prodname_codeql %} pull requests{% endif %}:** assess the impact of running {% data variables.product.prodname_codeql %}{% ifversion ai-powered-security-detections %} and {% data variables.product.prodname_ai_scan %}{% endif %} on pull requests, and how development teams resolve {% ifversion ai-powered-security-detections %}alerts and findings{% else %}{% data variables.product.prodname_code_scanning %} alerts{% endif %}, see [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts). * **{% data variables.product.prodname_dependabot %}**: prioritize and track critical vulnerabilities by identifying, remediating, and measuring security improvements across repositories. * **{% data variables.product.prodname_secret_scanning_caps %}:** find out which types of secret are blocked by push protection and which teams are bypassing push protection, see [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-secret-scanning-push-protection) and [AUTOTITLE](/code-security/how-tos/secure-your-secrets/manage-bypass-requests/review-bypass-requests). diff --git a/content/code-security/getting-started/github-security-features.md b/content/code-security/getting-started/github-security-features.md index 6498b46930bd..ed1b0d9060aa 100644 --- a/content/code-security/getting-started/github-security-features.md +++ b/content/code-security/getting-started/github-security-features.md @@ -205,7 +205,7 @@ Get automatically generated fixes for {% data variables.product.prodname_code_sc {% ifversion ai-powered-security-detections %} -### AI Scan +### {% data variables.product.prodname_ai_scan %} Find vulnerabilities in languages and frameworks not covered by {% data variables.product.prodname_codeql %} with an AI-based scanning engine that runs during pull request review. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). diff --git a/content/code-security/getting-started/quickstart-for-securing-your-repository.md b/content/code-security/getting-started/quickstart-for-securing-your-repository.md index d787c3e67320..1eb715ae9d78 100644 --- a/content/code-security/getting-started/quickstart-for-securing-your-repository.md +++ b/content/code-security/getting-started/quickstart-for-securing-your-repository.md @@ -129,7 +129,7 @@ As an alternative to default setup, you can use advanced setup, which generates {% ifversion ai-powered-security-detections %} -You can separately enable AI Scan to extend {% data variables.product.prodname_code_scanning %} coverage to supported languages and frameworks that {% data variables.product.prodname_codeql %} does not cover. AI Scan requires {% data variables.product.prodname_code_scanning %}, but does not require {% data variables.product.prodname_codeql %} default setup. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). +You can separately enable {% data variables.product.prodname_ai_scan %} to extend {% data variables.product.prodname_code_scanning %} coverage to supported languages and frameworks that {% data variables.product.prodname_codeql %} does not cover. {% data variables.product.prodname_ai_scan %} requires {% data variables.product.prodname_code_scanning %}, but does not require {% data variables.product.prodname_codeql %} default setup. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). {% endif %} diff --git a/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/assess-alerts.md b/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/assess-alerts.md index c2c62575efd4..2ce6312a27f7 100644 --- a/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/assess-alerts.md +++ b/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/assess-alerts.md @@ -76,7 +76,7 @@ When you select a keyword from either a drop-down list, or as you enter a keywor {% ifversion ai-scan-for-repositories %} -To focus on findings from AI Scan for repositories, filter the alert list by the **AI Scan** tool. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories). +To focus on findings from {% data variables.product.prodname_ai_scan_for_repositories %}, filter the alert list by the **{% data variables.product.prodname_ai_scan %}** tool. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories). {% endif %} diff --git a/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/viewing-and-managing-ai-scan-alerts.md b/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/viewing-and-managing-ai-scan-alerts.md index 7f5b59a70416..6afe33f55011 100644 --- a/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/viewing-and-managing-ai-scan-alerts.md +++ b/content/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/viewing-and-managing-ai-scan-alerts.md @@ -1,7 +1,7 @@ --- title: Viewing and managing AI Scan alerts on your repository''s default branch -shortTitle: Manage AI Scan backlog alerts -intro: 'Run an AI Scan, review the alerts in your {% data variables.product.prodname_code_scanning %} backlog, and check fixes for security vulnerabilities.' +shortTitle: 'Manage {% data variables.product.prodname_ai_scan %} backlog alerts' +intro: 'Run an {% data variables.product.prodname_ai_scan %}, review the alerts in your {% data variables.product.prodname_code_scanning %} backlog, and check fixes for security vulnerabilities.' allowTitleToDifferFromFilename: true permissions: '{% data reusables.permissions.code-scanning-all-alerts %}' versions: @@ -16,7 +16,7 @@ category: ## Prerequisites -AI Scan for repositories must be enabled for your repository. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories#enabling-ai-scan-for-repositories). +{% data variables.product.prodname_ai_scan_for_repositories %} must be enabled for your repository. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories#enabling-ai-scan-for-repositories). ## Running a scan @@ -25,13 +25,13 @@ Scans analyze your repository's default branch. {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-code-scanning-alerts %} -1. In the top right corner, select the **AI Scan** dropdown. +1. In the top right corner, select the **{% data variables.product.prodname_ai_scan %}** dropdown. 1. From the dropdown, to the right of **Standard scan**, click to start the scan. 1. Wait for the scan to complete. -## Viewing AI Scan alerts +## Viewing {% data variables.product.prodname_ai_scan %} alerts -When the scan finishes, its findings appear in the {% data variables.product.prodname_code_scanning %} alert list. Filter the list by the **AI Scan** tool to review them. +When the scan finishes, its findings appear in the {% data variables.product.prodname_code_scanning %} alert list. Filter the list by the **{% data variables.product.prodname_ai_scan %}** tool to review them. Use the existing alert assessment and remediation workflows: @@ -40,6 +40,6 @@ Use the existing alert assessment and remediation workflows: ## Checking fixes and closing alerts -After a potential fix is merged into the default branch, repeat the steps in [Running a scan](#running-a-scan). Merging a fix does not automatically trigger another AI Scan. +After a potential fix is merged into the default branch, repeat the steps in [Running a scan](#running-a-scan). Merging a fix does not automatically trigger another {% data variables.product.prodname_ai_scan %}. During {% data variables.release-phases.public_preview %}, an alert only closes automatically after a new scan if the fix changes the exact line of code that triggered the alert. Otherwise, you must manually close the alert. \ No newline at end of file diff --git a/content/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings.md b/content/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings.md index 0c2c863a132f..0d39ac3cebb0 100644 --- a/content/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings.md +++ b/content/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/configure-global-settings.md @@ -110,10 +110,10 @@ You can customize several {% data variables.product.prodname_global_settings %} * [Enabling {% data variables.copilot.copilot_autofix_short %} for {% data variables.product.prodname_codeql %}](#enabling-copilot-autofix-for-codeql) {%- endif %} {%- ifversion ai-powered-security-detections %} -* [Enabling AI Scan for pull requests](#enabling-ai-scan-for-pull-requests) +* [Enabling {% data variables.product.prodname_ai_scan_for_pull_requests %}](#enabling-ai-scan-for-pull-requests) {%- endif %} {%- ifversion ai-scan-for-repositories %} -* [Enabling AI Scan for repositories](#enabling-ai-scan-for-repositories) +* [Enabling {% data variables.product.prodname_ai_scan_for_repositories %}](#enabling-ai-scan-for-repositories) {%- endif %} {%- ifversion ai-applications-scanning %} * [Enabling {% data variables.product.prodname_ai_applications_scanning %}](#enabling-ai-applications-scanning) @@ -139,19 +139,19 @@ You can select **{% data variables.copilot.copilot_autofix_short %}** to enable {% ifversion ai-powered-security-detections %} -### Enabling AI Scan for pull requests +### Enabling {% data variables.product.prodname_ai_scan_for_pull_requests %} -You can select **AI Scan for pull requests** to enable the feature for eligible repositories in your organization where {% data variables.product.prodname_code_scanning %} is enabled. Repositories inherit the organization setting, but repository administrators can opt out for individual repositories. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). +You can select **{% data variables.product.prodname_ai_scan_for_pull_requests %}** to enable the feature for eligible repositories in your organization where {% data variables.product.prodname_code_scanning %} is enabled. Repositories inherit the organization setting, but repository administrators can opt out for individual repositories. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-powered-security-detections). {% endif %} {% ifversion ai-scan-for-repositories %} -### Enabling AI Scan for repositories +### Enabling {% data variables.product.prodname_ai_scan_for_repositories %} -You can select **AI Scan for repositories** to enable the feature for eligible repositories in your organization where {% data variables.product.prodname_code_scanning %} is enabled. Repositories inherit the organization setting, but repository administrators can opt out for individual repositories. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories). +You can select **{% data variables.product.prodname_ai_scan_for_repositories %}** to enable the feature for eligible repositories in your organization where {% data variables.product.prodname_code_scanning %} is enabled. Repositories inherit the organization setting, but repository administrators can opt out for individual repositories. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-scan-for-repositories). -After enabling the setting, you can start one-off scans of up to 20 repositories. Enabling the setting alone does not start scans. Alternatively, you can start one-off AI scans in bulk for multiple repositories from the {% data variables.product.prodname_code_scanning %} organization alerts page, or start an AI scan for a single repository from its {% data variables.product.prodname_code_scanning %} repository alerts page. +After enabling the setting, you can start one-off scans of up to 20 repositories. Enabling the setting alone does not start scans. Alternatively, you can start one-off {% data variables.product.prodname_ai_scan %}s in bulk for multiple repositories from the {% data variables.product.prodname_code_scanning %} organization alerts page, or start an {% data variables.product.prodname_ai_scan %} for a single repository from its {% data variables.product.prodname_code_scanning %} repository alerts page. You can also manage this setting with the REST API by using the `repository_scan` property. See [AUTOTITLE](/rest/code-scanning/code-scanning#update-the-ai-scan-setting-for-an-organization). {% endif %} @@ -160,9 +160,9 @@ You can also manage this setting with the REST API by using the `repository_scan ### Enabling {% data variables.product.prodname_ai_applications_scanning %} -You can select **Scan for AI applications** to enable {% data variables.product.prodname_ai_applications_scanning %} for eligible repositories in your organization. This setting is separate from **AI Scan** and controls a different detector. Repositories inherit the organization setting, but repository administrators can opt out for individual repositories. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests). +You can select **Scan for AI applications** to enable {% data variables.product.prodname_ai_applications_scanning %} for eligible repositories in your organization. This setting is separate from **{% data variables.product.prodname_ai_scan %}** and controls a different detector. Repositories inherit the organization setting, but repository administrators can opt out for individual repositories. See [AUTOTITLE](/code-security/concepts/code-scanning/ai-applications-scanning-for-pull-requests). -If your organization already has AI Scan enabled for pull requests, or you're moving from the private preview of {% data variables.product.prodname_ai_applications_scanning %}, you still need to select **Scan for AI applications** separately. Enabling AI Scan doesn't enable {% data variables.product.prodname_ai_applications_scanning %}. +If your organization already has {% data variables.product.prodname_ai_scan %} enabled for pull requests, or you're moving from the private preview of {% data variables.product.prodname_ai_applications_scanning %}, you still need to select **Scan for AI applications** separately. Enabling {% data variables.product.prodname_ai_scan %} doesn't enable {% data variables.product.prodname_ai_applications_scanning %}. {% endif %} diff --git a/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/export-data.md b/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/export-data.md index 7e8d23a29ca7..6418b250bca5 100644 --- a/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/export-data.md +++ b/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/export-data.md @@ -20,9 +20,9 @@ category: The CSV file you download will contain data corresponding to the filters you have applied to security overview. For example, if you add the filter `dependabot-alerts:enabled`, your file will only contain data for repositories that have enabled {% data variables.product.prodname_dependabot_alerts %}. {% ifversion ai-powered-security-detections %} -CSV files exported from the "Coverage" view include a `Code Scanning AI Scan for pull requests` column. The value for each repository is `enabled` or `not-enabled`. +CSV files exported from the "Coverage" view include a `Code Scanning {% data variables.product.prodname_ai_scan_for_pull_requests %}` column. The value for each repository is `enabled` or `not-enabled`. -In the "Code scanning on pull requests" report, CSV export is available on the **{% data variables.product.prodname_codeql %}** tab. CSV export is not yet available on the **AI Scan** tab. +In the "Code scanning on pull requests" report, CSV export is available on the **{% data variables.product.prodname_codeql %}** tab. CSV export is not yet available on the **{% data variables.product.prodname_ai_scan %}** tab. {% endif %} > [!NOTE] diff --git a/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts.md b/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts.md index d3d13ffce2cc..e42afb0ce09e 100644 --- a/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts.md +++ b/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts.md @@ -2,7 +2,7 @@ title: Viewing code scanning metrics for pull requests shortTitle: View pull request metrics allowTitleToDifferFromFilename: true -intro: Monitor how {% data variables.product.prodname_codeql %}{% ifversion ai-powered-security-detections %} and AI Scan{% endif %} perform in pull requests across your organizations to identify repositories where you may need to take action. +intro: Monitor how {% data variables.product.prodname_codeql %}{% ifversion ai-powered-security-detections %} and {% data variables.product.prodname_ai_scan %}{% endif %} perform in pull requests across your organizations to identify repositories where you may need to take action. permissions: '{% data reusables.permissions.security-overview %}' product: '{% data reusables.gated-features.security-overview-fpt-cs-only %}' contentType: how-tos @@ -22,7 +22,7 @@ category: {% data reusables.organizations.security-overview %} 1. In the sidebar, under "Insights", click **{% octicon "graph" aria-hidden="true" aria-label="graph" %} {% ifversion ai-powered-security-detections %}Code scanning on pull requests{% else %}{% data variables.product.prodname_codeql %} pull requests{% endif %}**. {% ifversion ai-powered-security-detections %} -1. Select the **{% data variables.product.prodname_codeql %}** or **AI Scan** tab. +1. Select the **{% data variables.product.prodname_codeql %}** or **{% data variables.product.prodname_ai_scan %}** tab. {% endif %} 1. Optionally, use the date picker to set the time range. The date picker filters data based on when the pull request alerts or findings were created. 1. Optionally, apply filters in the search box at the top of the page. @@ -31,7 +31,7 @@ category: * Click **{% octicon "plus" aria-hidden="true" aria-label="plus" %} Add a filter**, then select a filter from the dropdown menu. * To search for repositories matching the selected filter, fill out the available fields for that filter, then click **Apply**. You can repeat this process to add as many filters as you would like to your search. * Optionally, to remove a filter from your search, click **{% octicon "filter" aria-hidden="true" aria-label="filter" %} Filter**. In the row of the filter you want to remove, click {% octicon "x" aria-label="Delete FILTER-NUMBER: FILTER-PROPERTIES" %}, then click **Apply**.{% ifversion security-overview-export-data %} -1. {% ifversion ai-powered-security-detections %}On the **{% data variables.product.prodname_codeql %}** tab, you can use the **{% octicon "download" aria-hidden="true" aria-label="download" %} Export CSV** button to download a CSV file of the displayed data. CSV export is not yet available for the **AI Scan** tab. {% else %}You can use the **{% octicon "download" aria-hidden="true" aria-label="download" %} Export CSV** button to download a CSV file of the data currently displayed on the page.{% endif %} For more information, see [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/export-data). {% endif %} +1. {% ifversion ai-powered-security-detections %}On the **{% data variables.product.prodname_codeql %}** tab, you can use the **{% octicon "download" aria-hidden="true" aria-label="download" %} Export CSV** button to download a CSV file of the displayed data. CSV export is not yet available for the **{% data variables.product.prodname_ai_scan %}** tab. {% else %}You can use the **{% octicon "download" aria-hidden="true" aria-label="download" %} Export CSV** button to download a CSV file of the data currently displayed on the page.{% endif %} For more information, see [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/export-data). {% endif %} ## Viewing code scanning pull request metrics for your enterprise @@ -41,7 +41,7 @@ You can also view code scanning metrics for pull requests across organizations i {% data reusables.code-scanning.click-code-security-enterprise %} 1. In the sidebar, under "Insights", click **{% octicon "graph" aria-hidden="true" aria-label="graph" %} {% ifversion ai-powered-security-detections %}Code scanning on pull requests{% else %}{% data variables.product.prodname_codeql %} pull requests{% endif %}**. {% ifversion ai-powered-security-detections %} -1. Select the **{% data variables.product.prodname_codeql %}** or **AI Scan** tab. +1. Select the **{% data variables.product.prodname_codeql %}** or **{% data variables.product.prodname_ai_scan %}** tab. {% endif %} 1. Optionally, use the date picker or filters to limit the displayed data. diff --git a/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-security-insights.md b/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-security-insights.md index b01d2f016add..5a19a52994db 100644 --- a/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-security-insights.md +++ b/content/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-security-insights.md @@ -20,7 +20,7 @@ category: The overview page in security overview provides a consolidated dashboard of your organization{% ifversion security-overview-dashboard-enterprise %} or enterprise{% endif %}'s security landscape. You can filter the dashboard by time period, tool, and other criteria to focus on specific areas of interest. For more information about the overview dashboard, available metrics, and access permissions, see [AUTOTITLE](/code-security/concepts/security-at-scale/security-overview). {% ifversion ai-powered-security-detections %} -The **Prevention** tab includes AI Scan metrics for your organization or enterprise. You can track AI Scan findings, resolution rates, and accepted {% data variables.copilot.copilot_autofix_short %} suggestions. For more detailed findings, use the "Code scanning on pull requests" report. See [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts). +The **Prevention** tab includes {% data variables.product.prodname_ai_scan %} metrics for your organization or enterprise. You can track {% data variables.product.prodname_ai_scan %} findings, resolution rates, and accepted {% data variables.copilot.copilot_autofix_short %} suggestions. For more detailed findings, use the "Code scanning on pull requests" report. See [AUTOTITLE](/code-security/how-tos/view-and-interpret-data/analyze-organization-data/viewing-metrics-for-pull-request-alerts). {% endif %} {% ifversion security-overview-export-data %} diff --git a/content/code-security/reference/security-at-scale/overview-dashboard-filters.md b/content/code-security/reference/security-at-scale/overview-dashboard-filters.md index d59b74c567ea..feeecc7d119f 100644 --- a/content/code-security/reference/security-at-scale/overview-dashboard-filters.md +++ b/content/code-security/reference/security-at-scale/overview-dashboard-filters.md @@ -118,7 +118,7 @@ You can limit the data to repositories owned by a single organization in your en | -------- | -------- | | `code-scanning-default-setup`| Display data for repositories where {% data variables.product.prodname_code_scanning %} is enabled or not enabled using {% data variables.product.prodname_codeql %} default setup. | | {% ifversion ai-powered-security-detections %} | -| `code-scanning-ai-scan-pr-scan` | Display data for repositories where AI Scan for pull requests is effectively enabled or not enabled. Use `code-scanning-ai-scan-pr-scan:enabled` to display enabled repositories, or `code-scanning-ai-scan-pr-scan:not-enabled` to display repositories where the feature is not enabled. | +| `code-scanning-ai-scan-pr-scan` | Display data for repositories where {% data variables.product.prodname_ai_scan_for_pull_requests %} is effectively enabled or not enabled. Use `code-scanning-ai-scan-pr-scan:enabled` to display enabled repositories, or `code-scanning-ai-scan-pr-scan:not-enabled` to display repositories where the feature is not enabled. | | {% endif %} | | `code-scanning-pull-request-alerts`| Display data for repositories where {% data variables.product.prodname_code_scanning %} is enabled or not enabled to run on pull requests. | | `dependabot-security-updates` | Display data for repositories where {% data variables.product.prodname_dependabot_security_updates %} is enabled or not enabled. | diff --git a/content/code-security/reference/security-at-scale/overview-dashboard-metrics.md b/content/code-security/reference/security-at-scale/overview-dashboard-metrics.md index 5b672a7a949d..8c23d98c7862 100644 --- a/content/code-security/reference/security-at-scale/overview-dashboard-metrics.md +++ b/content/code-security/reference/security-at-scale/overview-dashboard-metrics.md @@ -48,7 +48,7 @@ The dashboard is divided into three tabs, each focused around a different securi * **Prevention:** Shows metrics about how vulnerabilities have been prevented and fixed in pull requests. > [!NOTE] -> Unlike the **Detection** and **Remediation** tabs which report alerts on the default branch, the **Prevention** tab gives you insights for {% data variables.product.prodname_codeql %} alerts found in merged pull requests{% ifversion ai-powered-security-detections %} and AI Scan findings from pull requests{% endif %}. +> Unlike the **Detection** and **Remediation** tabs which report alerts on the default branch, the **Prevention** tab gives you insights for {% data variables.product.prodname_codeql %} alerts found in merged pull requests{% ifversion ai-powered-security-detections %} and {% data variables.product.prodname_ai_scan %} findings from pull requests{% endif %}. ## Detection metrics @@ -164,16 +164,16 @@ Shows the ratio of accepted {% data variables.copilot.copilot_autofix_short %} s {% ifversion ai-powered-security-detections %} -### AI Scan findings +### {% data variables.product.prodname_ai_scan %} findings Shows trends for **Total findings**, **Fix applied**, and **Dismissed** over the time period you have chosen. A finding is resolved when a fix is applied or the finding is dismissed. -### AI Scan findings resolved +### {% data variables.product.prodname_ai_scan %} findings resolved -Shows the number of resolved AI Scan findings out of the total number of findings, and the percentage resolved. A finding is resolved when a fix is applied or the finding is dismissed. +Shows the number of resolved {% data variables.product.prodname_ai_scan %} findings out of the total number of findings, and the percentage resolved. A finding is resolved when a fix is applied or the finding is dismissed. -### AI Scan findings with accepted autofix +### {% data variables.product.prodname_ai_scan %} findings with accepted autofix -Shows the number of AI Scan findings with an accepted {% data variables.copilot.copilot_autofix_short %} suggestion out of all findings that had a suggested autofix, and the acceptance percentage. +Shows the number of {% data variables.product.prodname_ai_scan %} findings with an accepted {% data variables.copilot.copilot_autofix_short %} suggestion out of all findings that had a suggested autofix, and the acceptance percentage. {% endif %} diff --git a/content/code-security/tutorials/secure-code-from-commit-to-production.md b/content/code-security/tutorials/secure-code-from-commit-to-production.md index e814b94205ec..5124682c3f7f 100644 --- a/content/code-security/tutorials/secure-code-from-commit-to-production.md +++ b/content/code-security/tutorials/secure-code-from-commit-to-production.md @@ -32,7 +32,7 @@ journeyTracks: - href: '/code-security/how-tos/secure-your-secrets/prevent-future-leaks/enable-ai-push-protection' - id: 'hybrid-detection' title: 'Detect vulnerabilities at scale with hybrid detection' - description: 'Combine {% data variables.product.prodname_codeql %} with AI-powered scanning for layered coverage. Qualifying pull requests get an extra AI review in languages {% data variables.product.prodname_codeql %} doesn''t support, and you can manually trigger an AI scan of your repository''s default branch to catch more vulnerabilities.' + description: 'Combine {% data variables.product.prodname_codeql %} with AI-powered scanning for layered coverage. Qualifying pull requests get an extra AI review in languages {% data variables.product.prodname_codeql %} doesn''t support, and you can manually trigger an {% data variables.product.prodname_ai_scan %} of your repository''s default branch to catch more vulnerabilities.' timeCommitment: '1–2 hours' guides: - href: '/code-security/concepts/code-scanning/code-scanning' diff --git a/content/get-started/learning-about-github/about-github-advanced-security.md b/content/get-started/learning-about-github/about-github-advanced-security.md index c1c84ede5910..2d0c76a8eacd 100644 --- a/content/get-started/learning-about-github/about-github-advanced-security.md +++ b/content/get-started/learning-about-github/about-github-advanced-security.md @@ -36,7 +36,7 @@ You get the following features with {% data variables.product.prodname_GH_code_s * **{% data variables.copilot.copilot_autofix_short %}**: Get automatically generated fixes for {% data variables.product.prodname_code_scanning %} alerts.{% ifversion ai-powered-security-detections %} -* **AI Scan**: Find vulnerabilities in languages and frameworks not covered by {% data variables.product.prodname_codeql %} with an AI-based scanning engine that runs during pull request review.{% endif %}{% endif %}{% ifversion security-campaigns %} +* **{% data variables.product.prodname_ai_scan %}**: Find vulnerabilities in languages and frameworks not covered by {% data variables.product.prodname_codeql %} with an AI-based scanning engine that runs during pull request review.{% endif %}{% endif %}{% ifversion security-campaigns %} * **Security campaigns**: Reduce security debt at scale.{% endif %} diff --git a/data/reusables/code-scanning/ai-scan-billing-credits.md b/data/reusables/code-scanning/ai-scan-billing-credits.md index c5d1412c2257..b6aadb25d930 100644 --- a/data/reusables/code-scanning/ai-scan-billing-credits.md +++ b/data/reusables/code-scanning/ai-scan-billing-credits.md @@ -1 +1 @@ -If the billing account receives included {% data variables.product.prodname_ai_credits_short %} through a {% data variables.product.prodname_copilot %} entitlement, AI Scan uses those credits first. After the included credits are exhausted, or if the account has no included credits, usage is metered and governed by the applicable budgets. If a hard budget leaves no {% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %} available, AI Scan cannot produce findings. Scanning resumes when an administrator increases the limiting budget or a new billing cycle begins. \ No newline at end of file +If the billing account receives included {% data variables.product.prodname_ai_credits_short %} through a {% data variables.product.prodname_copilot %} entitlement, {% data variables.product.prodname_ai_scan %} uses those credits first. After the included credits are exhausted, or if the account has no included credits, usage is metered and governed by the applicable budgets. If a hard budget leaves no {% data variables.product.prodname_code_security %} {% data variables.product.prodname_ai_credits_short %} available, {% data variables.product.prodname_ai_scan %} cannot produce findings. Scanning resumes when an administrator increases the limiting budget or a new billing cycle begins. \ No newline at end of file diff --git a/data/reusables/code-scanning/ai-scan-for-repositories-preview.md b/data/reusables/code-scanning/ai-scan-for-repositories-preview.md index f87e525594dc..86baa59eeda3 100644 --- a/data/reusables/code-scanning/ai-scan-for-repositories-preview.md +++ b/data/reusables/code-scanning/ai-scan-for-repositories-preview.md @@ -1 +1 @@ -AI Scan for repositories is in {% data variables.release-phases.public_preview %} and subject to change. +{% data variables.product.prodname_ai_scan_for_repositories %} is in {% data variables.release-phases.public_preview %} and subject to change. diff --git a/data/reusables/code-scanning/ai-scan-model-policies.md b/data/reusables/code-scanning/ai-scan-model-policies.md index 417e92de6e68..d4c9d21ba1ac 100644 --- a/data/reusables/code-scanning/ai-scan-model-policies.md +++ b/data/reusables/code-scanning/ai-scan-model-policies.md @@ -1 +1 @@ -AI Scan features do not respect the models enabled in the {% data variables.product.prodname_copilot_short %} **Configure models** policy for your enterprise or organization, so AI Scan may use models that the policy doesn't allow. To control whether AI Scan can run, use the AI Scan settings and enterprise policy instead. +{% data variables.product.prodname_ai_scan %} features do not respect the models enabled in the {% data variables.product.prodname_copilot_short %} **Configure models** policy for your enterprise or organization, so {% data variables.product.prodname_ai_scan %} may use models that the policy doesn't allow. To control whether {% data variables.product.prodname_ai_scan %} can run, use the {% data variables.product.prodname_ai_scan %} settings and enterprise policy instead. diff --git a/data/reusables/code-scanning/using-security-overview-coverage.md b/data/reusables/code-scanning/using-security-overview-coverage.md index 8b06124a05ac..9151fcfcd1de 100644 --- a/data/reusables/code-scanning/using-security-overview-coverage.md +++ b/data/reusables/code-scanning/using-security-overview-coverage.md @@ -1,6 +1,6 @@ 1. Use options in the page summary to filter results to show the repositories you want to assess. The list of repositories and metrics displayed on the page automatically update to match your current selection. For more information on filtering, see [AUTOTITLE](/code-security/how-tos/manage-security-alerts/remediate-alerts-at-scale/filtering-alerts-in-security-overview). {% ifversion ai-powered-security-detections %} - For **AI Scan for pull requests**, the summary shows the number of repositories where the feature is enabled or not enabled, and the repository list shows each repository's status. An `enabled` status reflects effective enablement after enterprise policy, organization configuration, prerequisites, and any repository opt-out are applied. A `not enabled` status can include repositories that are ineligible for AI Scan, and security overview does not distinguish the reason why the feature is not enabled. + For **{% data variables.product.prodname_ai_scan_for_pull_requests %}**, the summary shows the number of repositories where the feature is enabled or not enabled, and the repository list shows each repository's status. An `enabled` status reflects effective enablement after enterprise policy, organization configuration, prerequisites, and any repository opt-out are applied. A `not enabled` status can include repositories that are ineligible for {% data variables.product.prodname_ai_scan %}, and security overview does not distinguish the reason why the feature is not enabled. {% endif %} * Use the **Teams** dropdown to show information only for the repositories owned by one or more teams. For more information, see [AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-team-access-to-an-organization-repository). * Click **NUMBER enabled** or **NUMBER not enabled** in the header for any feature to show only the repositories with that feature enabled or not enabled. diff --git a/data/variables/product.yml b/data/variables/product.yml index 68266344acf0..ca282a14e3b8 100644 --- a/data/variables/product.yml +++ b/data/variables/product.yml @@ -296,6 +296,9 @@ prodname_secret_scanning_caps: 'Secret scanning' # Code scanning prodname_code_scanning: 'code scanning' prodname_code_scanning_caps: 'Code scanning' +prodname_ai_scan: 'AI Scan' +prodname_ai_scan_for_repositories: 'AI Scan for repositories' +prodname_ai_scan_for_pull_requests: 'AI Scan for pull requests' prodname_ai_applications_scanning: 'AI applications scanning' # Visual Studio From 6a7a94b80039c9fce4d4296e508060c3021ad3d4 Mon Sep 17 00:00:00 2001 From: Patrick Le Quere <48521719+plequere-ms@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:09:52 +0000 Subject: [PATCH 7/7] Document managing Codespaces user secrets from inside a codespace (#64603) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> --- ...-specific-secrets-for-github-codespaces.md | 68 +++++++++++++++++++ .../security-in-github-codespaces.md | 2 + 2 files changed, 70 insertions(+) diff --git a/content/codespaces/managing-your-codespaces/managing-your-account-specific-secrets-for-github-codespaces.md b/content/codespaces/managing-your-codespaces/managing-your-account-specific-secrets-for-github-codespaces.md index f62bb248d062..e33bf2b7c1a6 100644 --- a/content/codespaces/managing-your-codespaces/managing-your-account-specific-secrets-for-github-codespaces.md +++ b/content/codespaces/managing-your-codespaces/managing-your-account-specific-secrets-for-github-codespaces.md @@ -76,6 +76,74 @@ You can update the value of an existing secret, and you can change which reposit 1. Under "Codespaces secrets," to the right of the secret you want to delete, click **Delete**. 1. Read the warning, then click **OK**. +## Managing secrets from inside a codespace + +The `GITHUB_TOKEN` that {% data variables.product.prodname_github_codespaces %} provides in a codespace can't manage your account-specific {% data variables.product.prodname_codespaces %} secrets. You can't use this token to list, add, update, or delete these secrets, to get the public key used to encrypt them, or to change which repositories can access them. This restriction doesn't affect repository or organization secrets, or how your secrets are added to your codespaces as environment variables. + +To manage your account-specific secrets, we recommend using your {% data variables.product.prodname_codespaces %} settings in a browser. See [Adding a secret](#adding-a-secret). + +If you want to manage these secrets from a codespace terminal, for example with {% data variables.product.prodname_cli %}, you must use a credential that you authorize separately. The credential needs permission to manage your {% data variables.product.prodname_codespaces %} secrets: + +* **{% data variables.product.prodname_oauth_app %} tokens and {% data variables.product.pat_v1_plural %}:** The `codespace` scope. The following `gh auth login` command requests this scope in addition to the scopes that {% data variables.product.prodname_cli %} always requests: `repo`, `read:org`, and `gist`. The resulting token can access your repositories, read your organization memberships, and manage your gists, as well as your {% data variables.product.prodname_codespaces %} secrets. If you don't want to make this access available in the codespace, use your {% data variables.product.prodname_codespaces %} settings in a browser, or manage your secrets from a trusted local machine. +* **{% data variables.product.pat_v2_caps_plural %}:** The "Codespaces user secrets" account permission, with write access. To give repositories access to a secret, the token must also include each of those repositories, with the "Codespaces secrets" repository permission. If you update a secret that repositories can already access, the token needs this access to each of those repositories too. + +> [!WARNING] +> When you authorize a credential in a codespace, code running in that codespace, such as dependencies, extensions, and lifecycle scripts, can use the credential. Only authorize a credential in a codespace if you trust all the code that runs in it. Otherwise, use your {% data variables.product.prodname_codespaces %} settings in a browser, or manage your secrets from a trusted local machine. + +{% data variables.product.prodname_cli %} uses the `GH_TOKEN` environment variable first, then `GITHUB_TOKEN`, and only then the credentials stored by `gh auth login`. Because a codespace sets `GITHUB_TOKEN`, running `gh auth login` on its own isn't enough. On Linux, you can unset these variables for a single command, without removing them from your codespace environment. + +1. In the terminal, authenticate {% data variables.product.prodname_cli %} with the `codespace` scope. + + ```shell copy + env -u GH_TOKEN -u GITHUB_TOKEN gh auth login --hostname github.com --web --scopes codespace + ``` + + If {% data variables.product.prodname_cli %} asks for your preferred protocol for Git operations, choose **HTTPS**. When it asks whether to authenticate Git with your {% data variables.product.github %} credentials, answer **No**. If you answer yes, the token can be saved to a Git credential helper, and `gh auth logout` doesn't remove it from there. + +1. Run the `gh secret` command you need with the `--user` flag, again unsetting the environment variables for that command. For example, to add or update a secret and give a repository access to it, run the following command, replacing `SECRET-NAME` and `OWNER/REPO`. To give more than one repository access, use a comma-separated list of repositories, each in the `OWNER/REPO` format. {% data variables.product.prodname_cli %} prompts you for the secret value. + + ```shell copy + env -u GH_TOKEN -u GITHUB_TOKEN gh secret set SECRET-NAME --user --repos OWNER/REPO + ``` + + To list your secrets, run `env -u GH_TOKEN -u GITHUB_TOKEN gh secret list --user`. + +1. When you've finished, remove the stored credential from the codespace. Replace `USERNAME` with your {% data variables.product.github %} username. + + ```shell copy + env -u GH_TOKEN -u GITHUB_TOKEN gh auth logout --hostname github.com --user USERNAME + ``` + + Signing out only removes the credential that {% data variables.product.prodname_cli %} stored in the codespace. If you had already signed in to {% data variables.product.prodname_cli %} in the codespace with the same account and hostname, signing in again replaced that stored credential, and signing out doesn't restore your previous sign-in. + + Signing out doesn't revoke the token, so it doesn't protect you if code in the codespace has already copied the credential. If you think a credential might have been exposed, you can revoke your authorization for {% data variables.product.prodname_cli %}. Revoking the authorization invalidates all {% data variables.product.prodname_cli %} tokens that it granted, so you may also be signed out of {% data variables.product.prodname_cli %} on other machines, including your local machine. See [AUTOTITLE](/apps/oauth-apps/using-oauth-apps/reviewing-your-authorized-oauth-apps). + +> [!WARNING] +> Don't include a secret value or a token in a command. Commands can be saved in your shell history and are visible to other processes. + +### Connecting to an enterprise on {% data variables.enterprise.data_residency_site %} + +If you access {% data variables.product.github %} through a subdomain of {% data variables.enterprise.data_residency_site %}, such as `{% data variables.enterprise.data_residency_domain %}`, use the following commands instead of the commands in the previous steps. Replace `SUBDOMAIN` with your enterprise's subdomain. + +1. Authenticate {% data variables.product.prodname_cli %} with your enterprise's hostname. + + ```shell copy + env -u GH_TOKEN -u GITHUB_TOKEN gh auth login --hostname SUBDOMAIN.ghe.com --web --scopes codespace + ``` + +1. Set `GH_HOST` in each `gh secret` command, so that {% data variables.product.prodname_cli %} uses your enterprise's subdomain instead of {% data variables.product.prodname_dotcom_the_website %}. + + ```shell copy + env -u GH_TOKEN -u GITHUB_TOKEN GH_HOST=SUBDOMAIN.ghe.com gh secret set SECRET-NAME --user --repos OWNER/REPO + env -u GH_TOKEN -u GITHUB_TOKEN GH_HOST=SUBDOMAIN.ghe.com gh secret list --user + ``` + +1. When you've finished, sign out using the same hostname. + + ```shell copy + env -u GH_TOKEN -u GITHUB_TOKEN gh auth logout --hostname SUBDOMAIN.ghe.com --user USERNAME + ``` + ## Using secrets A development environment secret is exported as an environment variable into the user's terminal session. diff --git a/content/codespaces/reference/security-in-github-codespaces.md b/content/codespaces/reference/security-in-github-codespaces.md index 51141f19c1c9..7f08038d14de 100644 --- a/content/codespaces/reference/security-in-github-codespaces.md +++ b/content/codespaces/reference/security-in-github-codespaces.md @@ -45,6 +45,8 @@ The token's scope will vary depending on the access you have to the repository w * **If you only have read access to the repository:** The token will only allow the code to be cloned from the source repository. If you make a commit in the codespace, or push a new branch, {% data variables.product.prodname_github_codespaces %} automatically creates a fork of the repository, or links the codespace to an existing fork if you already have one for the upstream repository. The token is updated to have read and write access to the fork. For more information, see [AUTOTITLE](/codespaces/developing-in-a-codespace/using-source-control-in-your-codespace#about-automatic-forking). * **If you've authorized your codespace to access other repositories:** The token will be scoped for read or read/write access to the source repository and to any other repositories to which you've authorized access. For more information, see [AUTOTITLE](/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces#authorizing-requested-permissions). +The token doesn't allow you to manage your account-specific {% data variables.product.prodname_codespaces %} secrets. To manage these secrets from a codespace, you must use a credential that you authorize separately. See [AUTOTITLE](/codespaces/managing-your-codespaces/managing-your-account-specific-secrets-for-github-codespaces#managing-secrets-from-inside-a-codespace). + ### Codespace connections You can connect to your codespace using the TLS encrypted tunnel provided by the {% data variables.product.prodname_github_codespaces %} service. Only the creator of a codespace can connect to a codespace. Connections are authenticated with {% data variables.product.github %}.