GitHub is most definitely worthy as a node on the network of an open source project, with the caveat that in the event of loss, the project should be able to rapidly spin back up on GitLab or any other git-based project management system (my fork of youtube-dl was nuked as part of the DMCA takedown, but I was able to restore the tarball the Internet Archive had to my personal GitLab instance, for example).
This isn't a call to move from GitHub wholesale (churning between git hosts isn't an effective use of resources imho), but to build more durability and resiliency into distributed version control systems (Keybase-esque identity management, signing every commit, etc). Just as the Internet Archive and others are championing a distributed web [1], technologists must champion distributed development systems. Perhaps a reasonable target is to be able to perform a "git pull" from IPFS? As Gilmore said [2], interpret censorship as damage and route around it.
[1] https://www.google.com/search?q=distributed+web
[2] http://kirste.userpage.fu-berlin.de/outerspace/internet-arti... (First Nation in Cyberspace, TIME International - Dec. 6, 1993, No.49)