News for hackers. Stuff that matters.
Re:Tell HN: GitHub will delete your private repo if you lose... by Mystery-Machine on Tuesday January 31, 2023 @05:02PM (#34602901)
GitHub is not supposed to make such decisions for the user here. It is user's responsibility to make sure they delete their private forks if they shouldn't have access to the repo/fork anymore.

What's next? Should we all install spyware on our computers and let GitHub automatically delete local copies of forks as well?

GitHub and the company/person, who deleted the original private repo, should inform the owner of the fork that the main repo was deleted. If need be, company/person can request fork owner to delete their private fork and local clone as well.

Re:Tell HN: GitHub will delete your private repo if you lose... by pavon on Tuesday January 31, 2023 @05:41PM (#34603401)
I think this incident reinforces that private repos on github.com are a weird hybrid of the public github and on-premise github which creates various practical problems and misunderstandings when those two security models collide.

First off is the fact that forking a repo is often a necessary step in contributing to project if you don't have push permission, so these forks will be created during the normal development processes, not necessarily because the employee was intentionally trying to save off their own copy. So it is perfectly normal for the employer to consider those forks to be something it should own and manage, just like it would on an on-premise installation.

On the otherhand, github still encourages people to use a single account for both personal use and work[1]. Naturally the employees reasonably consider all the forks that are in their account to be something that they should own and manage.

So you end up with situtations like this.

[1] https://docs.github.com/en/get-started/learning-about-github...

Re:Tell HN: GitHub will delete your private repo if you lose... by geraldwhen on Tuesday January 31, 2023 @09:21PM (#34605514)
Enterprise Managed Users solves the issue.
Re:Tell HN: GitHub will delete your private repo if you lose... by jyrkesh on Tuesday January 31, 2023 @06:04PM (#34603652)
MIT licensed code doesn't mandate distribution. Companies and organizations are perfectly within their rights to own a private fork of an MIT-licensed codebase in perpetuity.

With that in mind, if you fork an organizationally-managed repository, there's a good chance the owner doesn't want you to continue to have access to that codebase if you're no longer a part of the organization. And the local copy? Well there's a good chance you were only allowed to clone the repo on an IT-managed device with specific 2FA policies and some kind of agent/config to prevent/reduce data exfiltration from that device.

Is it a perfect system? Hell no. Data leaks, that's part of life. And I'm with you that it certainly could be more user-configurable.

But it's also extremely well-documented behavior[1], and seems like a key design choice that GitHub made a long time ago to protect the owners of private repos. Ultimately, if you don't care about who has access to your code, you signal that by making the repo public. Or by telling your private collaborators to make sure they hold on to a local copy.

[1]: https://docs.github.com/en/pull-requests/collaborating-with-...

Re:Tell HN: GitHub will delete your private repo if you lose... by bunbun69 on Wednesday February 01, 2023 @09:08AM (#34610575)
Seems like you don't like GitHub. Have you considered not using it?