There seems to be legal precedent for holding GitHub liable for distributing software that encourages piracy according to MGM v Grokster[1]. Unless I'm reading that incorrectly, if they can prove that the software "promotes" the infringement, the claim will stand.
[1] https://en.wikipedia.org/wiki/MGM_Studios,_Inc._v._Grokster,...