Do you restrict repository deletion?
Updated by Brady Stroud [SSW] 4 years ago. See history
123
<introEmbed
body={<>
When deleting GitHub repositories, it can be hard to tell if you are on a fork or the base repository as the interface is very similar. This can lead to accidental deletions of base repositories.
</>}
/>
To avoid this, the organisation owners should be the only members allowed to delete repositories. Follow these instructions:
- Go to your organisation | Settings | Member privileges.
- Under 'Repository deletion and transfer', ensure 'Allow members to delete or transfer repositories for this organization' is deselected
- Save
See GitHub docs Setting permissions for deleting or transferring repositories
This will ensure that even Admin users cannot accidentally delete or transfer repositories

✅ Figure: 'Allow members to delete or transfer repositories for this organization' is disabled
Categories
Related rules
Need help?
SSW Consulting has over 30 years of experience developing awesome software solutions.