Arguably by downloading it from github you’ve made an illegal copy.
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).