Only use GitHub resolver for public endpoints, fixes #603.