Proper way to get "private" repo's Hugo Modules?

A post was split to a new topic: Hugo can’t handle private modules