If you're running a recent version of GitHub Enterprise, the avatar base URL can be configured today. It's possible to run an internal, secure server that responds to Gravatar's URL scheme.
I filed a bug report that my default GitHub avatar was not found - Apparently it was an issue with broken profile images, and they fixed it with these identicons.