No, you copied on your hard drive something that was offered to you for free on github.
Hosting that code yourself somewhere else would be illegal though.
Hosting that code yourself somewhere else would be illegal though.
It wasn't offered for free local reproduction since that right was not explicitly granted, and Github's license grant does not grant it either (as far as my reading goes). Though the country you're in may have a private copy exception, in which case you'd be in the clear I think (depending on the specifics of that exception).