UK government standards say that government software should be open source by default https://www.gov.uk/service-manual/service-standard/point-12-...
Collection of RFCs: https://github.com/alphagov/govuk-rfcs
Open design system: https://design-system.service.gov.uk
Git is decentralized and using a self-hosted instance of Gitea / Forgejo will give you a replacement for the essential parts of GitHub. GitHub is absolutely replaceable.