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/how-tos/secure-at-scale/configure-enterprise-security/establish-complete-coverage/applying-the-github-recommended-security-configuration-to-your-enterprise.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ The {% data variables.product.prodname_github_security_configuration %} includes
41
41
{% data reusables.enterprise-accounts.advanced-security-tab %}
42
42
1. In the "Configurations" section, select "{% data variables.product.company_short %} recommended".
43
43
1. In the "Policy" section, next to "Enforce configuration", select **Enforce** from the dropdown menu.
44
-
1. Click **Save configuration** to save your change to the {% data variables.product.prodname_github_security_configuration %}.
45
44
46
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases-enterprise %}
45
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
46
+
47
+
1. Click **Save configuration** to save your change to the {% data variables.product.prodname_github_security_configuration %}.
Copy file name to clipboardExpand all lines: content/code-security/how-tos/secure-at-scale/configure-enterprise-security/establish-complete-coverage/creating-a-custom-security-configuration-for-your-enterprise.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,9 +84,9 @@ When creating a security configuration, keep in mind that:
84
84
{% data reusables.security-configurations.default-configuration-exception-repo-transfers %}
85
85
***Enforce configuration**. Block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Select **Enforce** from the dropdown menu.
86
86
87
-
1. To finish creating your {% data variables.product.prodname_custom_security_configuration %}, click **Save configuration**.
87
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
88
88
89
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases-enterprise %}
89
+
{% data reusables.code-scanning.save-custom-configuration %}
90
90
91
91
## Creating a {% data variables.product.prodname_GHAS %} configuration
92
92
@@ -124,9 +124,9 @@ When creating a security configuration, keep in mind that:
124
124
{% data reusables.security-configurations.default-configuration-exception-repo-transfers %}
125
125
***Enforce configuration**. Block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Select **Enforce** from the dropdown menu.
126
126
127
-
1. To finish creating your {% data variables.product.prodname_custom_security_configuration %}, click **Save configuration**.
127
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
128
128
129
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases-enterprise %}
129
+
{% data reusables.code-scanning.save-custom-configuration %}
130
130
131
131
{% else %}
132
132
@@ -156,9 +156,9 @@ When creating a security configuration, keep in mind that:
156
156
157
157
1. Optionally, in the "Policy" section, you can enforce the configuration and block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Next to "Enforce configuration", select **Enforce** from the dropdown menu.
158
158
159
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases-enterprise %}
159
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
160
160
161
-
1. To finish creating your {% data variables.product.prodname_custom_security_configuration %}, click **Save configuration**.
161
+
{% data reusables.code-scanning.save-custom-configuration %}
Copy file name to clipboardExpand all lines: content/code-security/how-tos/secure-at-scale/configure-enterprise-security/manage-your-coverage/editing-a-custom-security-configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,6 @@ After creating and applying a {% data variables.product.prodname_custom_security
35
35
1. Edit the enablement settings of your {% data variables.product.prodname_custom_security_configuration %} as desired.
36
36
1. In the "Policy" section, you can modify the configuration's enforcement status. Enforcing a configuration will block repository owners from changing features that are enabled or disabled by the configuration, but features that are not set aren't enforced. Next to "Enforce configuration", select **Enforce** or **Don't enforce** from the dropdown menu.
37
37
38
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases-enterprise %}
38
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
39
39
40
40
1. To apply your changes, click **Update configuration**.
Copy file name to clipboardExpand all lines: content/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/applying-the-github-recommended-security-configuration-in-your-organization.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ The {% data variables.product.prodname_github_security_configuration %} is a col
54
54
1. In the "Security configurations" section, select "{% data variables.product.company_short %} recommended".
55
55
1. In the "Policy" section, next to "Enforce configuration", select **Enforce** from the dropdown menu.
56
56
57
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases %}
57
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
Copy file name to clipboardExpand all lines: content/code-security/how-tos/secure-at-scale/configure-organization-security/establish-complete-coverage/creating-a-custom-security-configuration.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,9 @@ With {% data variables.product.prodname_custom_security_configurations %}, you c
73
73
{% data reusables.security-configurations.default-configuration-exception-repo-transfers %}
74
74
***Enforce configuration**. Block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Select **Enforce** from the dropdown menu.
75
75
76
-
1. To finish creating your {% data variables.product.prodname_custom_security_configuration %}, click **Save configuration**.
76
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
77
77
78
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases-enterprise %}
78
+
{% data reusables.code-scanning.save-custom-configuration %}
79
79
80
80
## Creating a {% data variables.product.prodname_GHAS %} configuration
81
81
@@ -114,7 +114,7 @@ With {% data variables.product.prodname_custom_security_configurations %}, you c
114
114
{% data reusables.security-configurations.default-configuration-exception-repo-transfers %}
115
115
***Enforce configuration**. Block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Select **Enforce** from the dropdown menu.
116
116
117
-
1. To finish creating your {% data variables.product.prodname_custom_security_configuration %}, click **Save configuration**.
117
+
{% data reusables.code-scanning.save-custom-configuration %}
118
118
119
119
{% else %}
120
120
@@ -149,9 +149,9 @@ With {% data variables.product.prodname_custom_security_configurations %}, you c
149
149
{% data reusables.security-configurations.default-configuration-exception-repo-transfers %}
150
150
1. Optionally, in the "Policy" section, you can enforce the configuration and block repository owners from changing features that are enabled or disabled by the configuration (features that are not set aren't enforced). Next to "Enforce configuration", select **Enforce** from the dropdown menu.
151
151
152
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases %}
152
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
153
153
154
-
1. To finish creating your {% data variables.product.prodname_custom_security_configuration %}, click **Save configuration**.
154
+
{% data reusables.code-scanning.save-custom-configuration %}
intro: Change the enablement settings in your {% data variables.product.prodname_custom_security_configuration %} to better meet the security needs of your repositories.
4
+
intro: Meet the security needs of your repositories by editing your {% data variables.product.prodname_custom_security_configuration %}.
5
5
permissions: '{% data reusables.permissions.security-org-enable %}'
6
6
versions:
7
7
feature: security-configurations
@@ -15,21 +15,6 @@ redirect_from:
15
15
contentType: how-tos
16
16
---
17
17
18
-
## About editing a {% data variables.product.prodname_custom_security_configuration %}
19
-
20
-
After creating and applying a {% data variables.product.prodname_custom_security_configuration %}, you may need to edit the enablement settings for that configuration to better secure your repositories. Any changes you make to the enablement settings of a {% data variables.product.prodname_security_configuration %} will automatically populate to all linked repositories.
21
-
22
-
To determine if your {% data variables.product.prodname_custom_security_configuration %} is meeting your security needs, see [AUTOTITLE](/code-security/securing-your-organization/managing-the-security-of-your-organization/interpreting-security-findings).
23
-
24
-
{% ifversion security-configurations-cloud %}
25
-
26
-
> [!NOTE]
27
-
> The {% data variables.product.prodname_github_security_configuration %} is managed by {% data variables.product.company_short %} and cannot be edited. If you would like to customize your security enablement settings, you need to create a {% data variables.product.prodname_custom_security_configuration %}. For more information, see [AUTOTITLE](/code-security/securing-your-organization/enabling-security-features-in-your-organization/creating-a-custom-security-configuration).
28
-
29
-
{% endif %}
30
-
31
-
## Modifying your {% data variables.product.prodname_custom_security_configuration %}
32
-
33
18
{% data reusables.profile.access_org %}
34
19
{% data reusables.organizations.org_settings %}
35
20
{% data reusables.security-configurations.view-configurations-page %}
@@ -41,6 +26,6 @@ To determine if your {% data variables.product.prodname_custom_security_configur
41
26
1. Edit the enablement settings of your {% data variables.product.prodname_custom_security_configuration %} as desired.
42
27
1. In the "Policy" section, you can modify the configuration's enforcement status. Enforcing a configuration will block repository owners from changing features that are enabled or disabled by the configuration, but features that are not set aren't enforced. Next to "Enforce configuration", select **Enforce** or **Don't enforce** from the dropdown menu.
43
28
44
-
{% data reusables.code-scanning.custom-security-configuration-enforcement-edge-cases %}
29
+
{% data reusables.code-scanning.security-configuration-enforcement-edge-cases %}
45
30
46
31
1. To apply your changes, click **Update configuration**.
intro: Understand the complexities of enforcing {% data variables.product.prodname_security_configurations %}.
4
+
versions:
5
+
feature: security-configurations
6
+
contentType: reference
7
+
topics:
8
+
- Code Security
9
+
- Secret Protection
10
+
- Organizations
11
+
- Security
12
+
---
13
+
14
+
{% data variables.product.prodname_security_configurations_caps %} can be enforced, meaning repository owners cannot change the enablement status of features that are enabled or disabled by the configuration.
15
+
16
+
## Situations that break enforcement
17
+
18
+
Some situations can break the enforcement of {% data variables.product.prodname_security_configurations %}. For example, the enablement of {% data variables.product.prodname_code_scanning %} will not apply to a repository if:
19
+
* {% data variables.product.prodname_actions %} is initially enabled on the repository, but is then disabled in the repository.
20
+
* {% data variables.product.prodname_actions %} required by {% data variables.product.prodname_code_scanning %} configurations are not available in the repository.{% ifversion ghes %}
21
+
* Self-hosted runners with the label `code-scanning` are not available.{% endif %}
22
+
* The definition for which languages should not be analyzed using {% data variables.product.prodname_code_scanning %} default setup is changed.
23
+
24
+
## Enforcement and the REST API
25
+
26
+
If a user in your organization or enterprise attempts to change the enablement status of a feature in an enforced configuration using the REST API, the API call will appear to succeed, but no enablement statuses will change.
> [!NOTE] Some situations can break the enforcement of {% data variables.product.prodname_security_configurations %}. See [AUTOTITLE](/code-security/reference/security-at-scale/security-configuration-enforcement).
0 commit comments