As mentioned in our developer guide, GitHub no longer supports basic authentication using a username and password. Instead, we recommend using personal access tokens or the web application flow.
Subscribe to updates for Deprecating password authentication via email and/or text message. You'll receive email notifications when incidents are updated, and text message notifications whenever GitHub creates or resolves an incident.