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.
Or you can directly use Glowing Bear without installing anything.