You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/code-security/tutorials/secure-your-organization/respond-to-a-security-incident.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,16 +101,18 @@ There are several containment actions you can choose to perform to limit the att
101
101
102
102
For exposed or exploited credentials, the most immediate action you can take is to revoke the affected credentials to prevent further misuse.
103
103
104
-
{% ifversion fpt or ghec or ghes > 3.17 %}
104
+
{% ifversion fpt or ghec %}
105
+
105
106
***Revoke via the API**
106
107
107
108
If the token is one of the following types, and the literal value of the token is known, you (or anybody) can revoke it by **submitting a request via the REST API**. See [AUTOTITLE](/rest/credentials/revoke?apiVersion=2022-11-28#revoke-a-list-of-credentials).
108
109
109
110
* {% data variables.product.pat_v1_caps %}
110
-
* {% data variables.product.pat_v2_caps %}{% ifversion fpt or ghec or ghes > 3.20 %}
111
+
* {% data variables.product.pat_v2_caps %}
111
112
* {% data variables.product.prodname_oauth_app %} access token
112
113
* {% data variables.product.prodname_github_app %} user access token
113
-
* {% data variables.product.prodname_github_app %} refresh token{% endif %}
114
+
* {% data variables.product.prodname_github_app %} refresh token
Copy file name to clipboardExpand all lines: content/copilot/concepts/agents/about-enterprise-plugin-standards.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ redirect_from:
17
17
18
18
> [!NOTE] This feature is in {% data variables.release-phases.public_preview %} and subject to change.
19
19
20
-
Enterprise-managed plugin standards allow administrators to **define and enforce policies for plugin availability**. By configuring a `settings.json` file in the enterprise's `.github-private` repository, administrators can specify which plugin marketplaces are available to users and which plugins are installed automatically.
20
+
Enterprise-managed plugin standards allow administrators to **define and enforce policies for plugin availability**. By configuring a `{% data variables.copilot.managed_setting_file %}` file in the enterprise's `.github-private` repository, administrators can specify which plugin marketplaces are available to users and which plugins are installed automatically.
21
21
22
22
## Where plugin standards apply
23
23
@@ -30,14 +30,14 @@ Users must upgrade to a supported client version for these standards to be appli
30
30
31
31
## How plugin standards work
32
32
33
-
Enterprise plugin standards use a configuration file stored in your enterprise's `.github-private` repository. The configuration is defined in a `settings.json` file at the following path: `.github/copilot/settings.json`.
33
+
Enterprise plugin standards use a configuration file stored in your enterprise's `.github-private` repository. The configuration is defined in a `{% data variables.copilot.managed_setting_file %}` file at the following path: `.github/copilot/{% data variables.copilot.managed_setting_file %}`. This file was previously called `settings.json`, which is still supported.
34
34
35
35
For plugin standards, the file can define:
36
36
37
37
***Known marketplaces**. Plugin marketplaces that are available to users for browsing and installing plugins.
38
38
***Default-enabled plugins**. Specific plugins that are automatically installed when users authenticate.
39
39
40
-
When a user authenticates to {% data variables.product.prodname_copilot_short %} in a supported client, the client queries an API endpoint that reads the `settings.json` from the enterprise's `.github-private` repository. The policies defined in the file are then applied to the user's session.
40
+
When a user authenticates to {% data variables.product.prodname_copilot_short %} in a supported client, the client queries an API endpoint that reads the `{% data variables.copilot.managed_setting_file %}` file. The policies defined in the file are then applied to the user's session.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/configure-enterprise-plugin-standards.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Configuring enterprise plugin standards
3
3
shortTitle: Configure plugin standards
4
4
allowTitleToDifferFromFilename: true
5
-
intro: 'Configure enterprise plugin standards by defining a `settings.json` file in your enterprise''s `.github-private` repository.'
5
+
intro: 'Configure enterprise plugin standards by defining a `{% data variables.copilot.managed_setting_file %}` file in your enterprise''s `.github-private` repository.'
6
6
permissions: Enterprise owners
7
7
versions:
8
8
feature: copilot
@@ -16,9 +16,8 @@ category:
16
16
17
17
You can apply settings to control users' available plugin marketplaces and default-installed plugins. These settings apply to users on your enterprise's {% data variables.product.prodname_copilot_short %} plan. For more information, see [AUTOTITLE](/copilot/concepts/agents/about-enterprise-plugin-standards).
18
18
19
-
1. In your enterprise's `.github-private` repository, navigate to the `.github/copilot/` directory. If you don't have a `.github-private` repository yet, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/prepare-for-custom-agents).
20
-
1. Create or edit the `settings.json` file at `.github/copilot/settings.json`.
21
-
1. Add your plugin policy configuration to the file. The `settings.json` file supports the following top-level properties:
19
+
{% data reusables.copilot.create-managed-settings %}
20
+
1. Add your plugin policy configuration to the file. The `{% data variables.copilot.managed_setting_file %}` file supports the following top-level properties:
title: Disabling automatic command approval in Copilot clients
3
+
shortTitle: Disable automatic commands
4
+
allowTitleToDifferFromFilename: true
5
+
intro: 'Disable yolo mode to stop agents from running commands without approval.'
6
+
permissions: Enterprise owners
7
+
versions:
8
+
feature: copilot
9
+
contentType: how-tos
10
+
category:
11
+
- Configure Copilot
12
+
- Manage Copilot for a team
13
+
---
14
+
15
+
> [!NOTE] This feature is in {% data variables.release-phases.public_preview %} and subject to change.
16
+
17
+
You can prevent users from using modes that enable automatic approval of agent commands in {% data variables.copilot.copilot_cli_short %} and {% data variables.product.prodname_vscode_shortname %}. The `disableBypassPermissionsMode` setting is defined in your enterprise's `{% data variables.copilot.managed_setting_file %}` file and applies to users on your enterprise's {% data variables.product.prodname_copilot_short %} plan.
18
+
19
+
This setting blocks users from using:
20
+
21
+
* The `--yolo` or `--allow-all` flag
22
+
* The `/yolo` or `/allow-all` command
23
+
* All runtime paths that enable combined bypass mode
24
+
25
+
This setting does **not** block individual flags such as `--allow-all-tools` or `--allow-all-paths`.
26
+
27
+
{% data reusables.copilot.create-managed-settings %}
Copy file name to clipboardExpand all lines: content/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,8 @@ For details of the supported tool kinds, see [AUTOTITLE](/copilot/reference/copi
79
79
80
80
The following command-line options give {% data variables.copilot.copilot_cli_short %} permission to use all available tools.
81
81
82
+
{% data reusables.copilot.disable-bypass %}
83
+
82
84
*`--allow-all-tools` — Full access to the available tools.
83
85
84
86
*`--allow-all` or `--yolo` — Equivalent to using all of the `--allow-all-tools`, `--allow-all-paths`, and `--allow-all-urls` options when starting the CLI.
Copy file name to clipboardExpand all lines: content/organizations/managing-programmatic-access-to-your-organization/github-credential-types.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The following sections describe revocation options for each credential type base
38
38
39
39
* If the token **belongs to you**, you can delete it via your personal account settings. See [AUTOTITLE](/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#deleting-a-personal-access-token).
40
40
{% data reusables.credentials.revoke-via-api %}
41
-
***Organization owners** and **enterprise owners** do not have direct visibility into or control over individual tokens. However, they can:{% ifversion fpt or ghec or ghes > 3.17 %}
41
+
***Organization owners** and **enterprise owners** do not have direct visibility into or control over individual tokens. However, they can:{% ifversion fpt or ghec %}
42
42
* Revoke them using the REST API, if the actual token value is known. See [AUTOTITLE](/rest/credentials/revoke?apiVersion=2022-11-28#revoke-a-list-of-credentials).{% endif %}
43
43
* Restrict the access of {% data variables.product.pat_generic_plural %} to the organization or enterprise entirely. See [AUTOTITLE](/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization) and [AUTOTITLE](/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-personal-access-tokens-in-your-enterprise).
44
44
***Organization owners and enterprise owners** on {% data variables.product.prodname_ghe_cloud %} with SSO enforced can revoke the SSO authorization for a specific {% data variables.product.pat_v1 %}. See [Revoking SSO authorization](#revoking-sso-authorization) for details.
@@ -49,7 +49,7 @@ The following sections describe revocation options for each credential type base
49
49
* If the token **belongs to you**, you can delete it via your personal account settings. See [AUTOTITLE](/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#deleting-a-personal-access-token).
50
50
{% data reusables.credentials.revoke-via-api %}
51
51
***Organization owners**: Can view and revoke individual tokens. Note, however, that when an organization owner revokes a {% data variables.product.pat_v2 %}, any SSH keys created by the token will continue to work and the token will still be able to read public resources within the organization. The revocation changes the resource owner from the organization to the user, and the user can reassign it back. See [AUTOTITLE](/organizations/managing-programmatic-access-to-your-organization/reviewing-and-revoking-personal-access-tokens-in-your-organization).
52
-
***Organization owners** and **enterprise owners** can:{% ifversion fpt or ghec or ghes > 3.17 %}
52
+
***Organization owners** and **enterprise owners** can:{% ifversion fpt or ghec %}
53
53
* Revoke the token using the REST API. See [AUTOTITLE](/rest/credentials/revoke?apiVersion=2022-11-28#revoke-a-list-of-credentials).{% endif %}
54
54
* Restrict the access of {% data variables.product.pat_generic_plural %} to the organization or enterprise entirely. See [AUTOTITLE](/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization) and [AUTOTITLE](/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-personal-access-tokens-in-your-enterprise).
55
55
***Revoked automatically** if pushed to a public repository or gist, or if unused for one year. See [AUTOTITLE](/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation).
1. In your enterprise's `.github-private` repository, navigate to the `.github/copilot/` directory. If you haven't set a `.github-private` repository as your enterprise's source of agent configuration, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/prepare-for-custom-agents).
2
+
1. Create or edit the `{% data variables.copilot.managed_setting_file %}` file. (This file was previously named `settings.json`, which is also supported.)
0 commit comments