Can I add a GitHub repository as an entry in Google Scholar?
The way with dealing with github repositories in a citable way is to draw a DOI from Zenodo. Zenodo allows you to create a tag or release in the github repository and make that citable.
I don't know specifically whether google scholar indexes that, but at least it is something you can put into a list of references.