The KML link on github.com has a MIME type of "text/plain", but it should be "application/vnd.google-earth.kml+xml"
3 KML MIME Types
To properly respond to requests from Google Earth (or any Earth browser), a KML server must adhere to specific rules for Google Earth to interpret the responses correctly.
Upon successful response, the server must return HTTP 200 and set the content-type of the response to an appropriate MIME type as outlined here.
Google Earth reads KML and KMZ files. The MIME type for KML files is
application/vnd.google-earth.kml+xml
The MIME type for KMZ files is
application/vnd.google-earth.kmz
Validator results:
Recommendations
This feed is valid, but enhancing interoperability with various feed readers can be achieved by implementing the following recommendations.
Feeds should not have a media type of "text/plain"
If I host your KML on my server (which uses the correct MIME type for serving KML), it functions correctly
BTW - If I direct the validator to the link provided in your question's code, it doesn't recognize it as a KML file at all, however, if I use that URL for KmlLayer, it works fine too