Skip to content

Commit 0a252d2

Browse files
Consolidate “Defining policies for repositories in your enterprise” (#62608)
1 parent 8c3595e commit 0a252d2

6 files changed

Lines changed: 20 additions & 80 deletions

File tree

data/reusables/enterprise/repo-policy-rules-manage-bypass-request.md renamed to content/admin/managing-accounts-and-repositories/managing-repositories-in-your-enterprise/bypass-push-rules-requests.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
## Managing requests to bypass push rules
1+
---
2+
title: Managing requests to bypass push rules
3+
intro: View and manage requests for bypass privileges to push commits containing restricted content to a repository.
4+
allowTitleToDifferFromFilename: true
5+
permissions: Enterprise owners
6+
versions:
7+
feature: repo-policy-rules
8+
shortTitle: Manage requests to bypass push rules
9+
contentType: how-tos
10+
category:
11+
- Manage accounts and repositories
12+
---
213

314
> [!NOTE] Repository policy delegated bypass is in {% data variables.release-phases.public_preview %} and subject to change.
415
516
You can view and manage all requests for bypass privileges on the “Bypass Requests" page, located under the **Policy** settings.
617

7-
You can filter requests by approver (member of the bypass list), requester (contributor making the request), timeframe, and status. The following statuses are assigned to a request:
18+
Filter requests by approver (member of the bypass list), requester (contributor making the request), timeframe, and status. The following statuses are assigned to a request:
819

920
|Status|Description|
1021
|---------|-----------|

content/admin/managing-accounts-and-repositories/managing-repositories-in-your-enterprise/governing-how-people-use-repositories-in-your-enterprise.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ shortTitle: Govern repository usage
88
contentType: how-tos
99
category:
1010
- Manage accounts and repositories
11+
redirect_from:
12+
- /enterprise-onboarding/govern-people-and-repositories/create-repository-policies
1113
---
1214

1315
{% data reusables.enterprise.repo-policy-rules-preview %}
1416

1517
{% data reusables.enterprise.repo-policy-rules-intro %}
1618

17-
>[!TIP] If you're an **organization owner**, you can create a repository policy for a specific organization. See [AUTOTITLE](/organizations/managing-organization-settings/governing-how-people-use-repositories-in-your-organization).
18-
1919
## Examples
2020

2121
{% data reusables.enterprise.repo-policy-rules-examples %}
@@ -24,7 +24,9 @@ category:
2424

2525
First, you'll target organizations in your enterprise. You can select all organizations, choose from a list, or create a dynamic rule using `fnmatch` syntax. If you use {% data variables.product.prodname_emus %}, you can also choose to target all repositories owned by users in your enterprise.
2626

27-
Then, you'll target repositories in the selected organizations. {% data reusables.enterprise.repo-policy-rules-with-custom-properties %}
27+
Then, you'll target repositories in the selected organizations. We recommend using repository policies alongside **custom repository properties**. By adding custom properties to repositories, you can flexibly target those repositories in a policy.
28+
29+
For example, you can add a property to mark repositories that contain production data or other sensitive information, then prevent anyone from making those repositories public.
2830

2931
## Interaction with other policies
3032

@@ -73,11 +75,3 @@ Choose which repositories (current or future) to target in the selected organiza
7375
### Delegating bypass of policies
7476

7577
{% data reusables.enterprise.repo-policy-rules-delegated-bypass %}
76-
77-
#### Managing bypass requests
78-
79-
{% data reusables.enterprise.repo-policy-rules-manage-bypass-request %}
80-
81-
## Further reading
82-
83-
To set additional policies for repository management, see [AUTOTITLE](/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise).

content/admin/managing-accounts-and-repositories/managing-repositories-in-your-enterprise/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ versions:
1010
ghes: '*'
1111
children:
1212
- /governing-how-people-use-repositories-in-your-enterprise
13+
- /bypass-push-rules-requests
1314
- /viewing-user-owned-repositories-in-your-enterprise
1415
- /accessing-user-owned-repositories-in-your-enterprise
1516
- /managing-custom-properties-for-repositories-in-your-enterprise

content/enterprise-onboarding/govern-people-and-repositories/create-repository-policies.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

content/enterprise-onboarding/govern-people-and-repositories/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ intro: Implement policies, custom properties, and rulesets to govern users and r
55
versions:
66
ghec: '*'
77
children:
8-
- /create-repository-policies
98
- /protect-branches
109
contentType: concepts
1110
docsTeamMetrics:
1211
- enterprise-onboarding
1312
---
14-

content/enterprise-onboarding/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ journeyTracks:
3131
guides:
3232
- href: '/admin/concepts/security-and-compliance/enterprise-policies'
3333
- href: '/admin/managing-accounts-and-repositories/managing-repositories-in-your-enterprise/managing-custom-properties-for-repositories-in-your-enterprise'
34-
- href: '/enterprise-onboarding/govern-people-and-repositories/create-repository-policies'
34+
- href: '/admin/managing-accounts-and-repositories/managing-repositories-in-your-enterprise/governing-how-people-use-repositories-in-your-enterprise'
3535
- href: '/enterprise-onboarding/govern-people-and-repositories/protect-branches'
3636
- href: '/admin/concepts/security-and-compliance/audit-log-for-an-enterprise'
3737
- id: 'github_apps'

0 commit comments

Comments
 (0)