If you can do without folders/issues/actions/etc gists already provide this functionality, as they can be accessed like usual git repositories while allowing private visibility with sharing by their exact link.
Why not add someone as a viewer to the private repo as needed?
If you can do without folders/issues/actions/etc gists already provide this functionality, as they can be accessed like usual git repositories while allowing private visibility with sharing by their exact link.