Skip to main content

Définition des autorisations pour la suppression ou le transfert de référentiels

Vous pouvez autoriser les membres de l’organisation qui disposent d’autorisations d’administrateur sur un référentiel à supprimer ou à transférer le référentiel, ou autoriser uniquement les propriétaires de l’organisation à supprimer ou transférer des référentiels.

Owners can set permissions for deleting or transferring repositories in an organization.

Limiting the ability to delete or transfer repositories helps prevent sensitive information from being exposed. For more information, see Best practices for preventing data leaks in your organization.

Setting a blanket policy

  1. In the upper-right corner of GitHub, select your profile photo, then click Your organizations.
  2. Next to the organization, click Settings.
  3. In the "Access" section of the sidebar, click Member privileges.
  4. Under "Repository deletion and transfer", select or deselect Allow members to delete or transfer repositories for this organization.
  5. Click Save.

Setting a more flexible policy (public preview)

You can create a repository policy to govern who can delete or transfer repositories in your organization. Compared to "member privilege" policies, repository policies give you more flexibility over which users the policies apply to and which repositories are targeted. See Governing how people use repositories in your organization.