Password-protected repo

I know that repos can be public and private.

The thing I want is to make my repo private, but accessible to all people including unregistered guests who have the password or the key.

Is this possible? If not, please give me suggestions for similar things.

Thank you.

:wave: Welcome!

This doesn’t exist on GitHub for repositories, but you can do this with a secret Gist if that helps.