ESPHome Custom component not accessible from private GitHub repo

I have created a custom component which I can locally deploy successfully. I have saved this into GitHub in a private repo. I have setup my esphome yaml file on HA to retrieve the component using external_components

external_components:
source:
type: git
url: https://github.com/xxx/esphome.git
username: myAccount
password: xxxxx
components: [myComponent]

When I build this in HA, I get this error…

Authentication failed for ‘https://github.com/xxx/esphome.git/’.

It looks like GitHub have stop supporting username/password…
.
Password-based authentication for Git has been removed in favor of more secure authentication methods

Can someone help or are there plans to update the Git authorisation methods?

Ok, I figured it out - use a personal access token as the password.

See - Managing your personal access tokens - GitHub Docs

1 Like