I would like to nudge developers who are understandably concerned about the state of GitHub and code "archives"/"libraries" that actual digital archivists and librarians (and not just IA) exist and there are many communities and projects that would love to engage with you about the future of your dependencies!
Just a smattering:
https://www.softwareheritage.org/
https://www.dpconline.org/
https://www.ndsa.org/
https://codemeta.github.io/