Skip to content

Commit d3fc1fb

Browse files
[Improvement]: Clarify that secret scanning and push protection for repos/org can be enabled for forks (#42173)
1 parent 7f3ffd7 commit d3fc1fb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

content/code-security/secret-scanning/about-secret-scanning.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ Additionally, {% data variables.product.prodname_secret_scanning %} scans the ti
5959

6060
{% endif %}
6161

62+
{% note %}
63+
64+
**Note:** When you fork a repository with {% data variables.product.prodname_secret_scanning %} or push protection enabled, these features are not enabled by default on the fork. You can enable {% data variables.product.prodname_secret_scanning %} or push protection on the fork the same way you enable them on a standalone repository.
65+
66+
{% endnote %}
67+
6268
{% ifversion fpt or ghec %}
6369

6470
## About {% data variables.secret-scanning.partner_alerts %}

content/code-security/secret-scanning/push-protection-for-repositories-and-organizations.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If a contributor bypasses a push protection block for a secret, {% data variable
3131
{% ifversion ghec or fpt %}
3232
{% note %}
3333

34-
**Note:** The github.dev web-based editor doesn't support push protection. For more information about the editor, see "[AUTOTITLE](/codespaces/the-githubdev-web-based-editor)."
34+
**Note:** The github.dev web-based editor doesn't support push protection. For more information about the editor, see "[AUTOTITLE](/codespaces/the-githubdev-web-based-editor)."
3535

3636
{% endnote %}
3737
{% endif %}
@@ -61,6 +61,12 @@ Organization owners, security managers, and repository administrators can also e
6161
{% ifversion secret-scanning-enterprise-level-api %}
6262
Enterprise administrators can also enable or disable {% data variables.product.prodname_secret_scanning %} as a push protection for the enterprise via the API. For more information, see "[AUTOTITLE](/rest/enterprise-admin/code-security-and-analysis)" in the REST API documentation.{% endif %}
6363

64+
{% note %}
65+
66+
**Note:** When you fork a repository with {% data variables.product.prodname_secret_scanning %} as a push protection enabled, this is not enabled by default on the fork. You can enable it on the fork the same way you enable it on a standalone repository.
67+
68+
{% endnote %}
69+
6470
{% ifversion secret-scanning-enterprise-level %}
6571

6672
### Enabling {% data variables.product.prodname_secret_scanning %} as a push protection for your enterprise

0 commit comments

Comments
 (0)