It is not about leading anything but about having the code in a repository so that it is easy to read/consult/audit/etc.
You can upload the code to any service (it doesn’t have to be GitHub, it can be GitLab, sourcehut, etc…) and disable issues and comments.
You don’t really need Cloudflare to have your own domain, you can do everything directly with GitHub.