I have written a couple of add-ons that I have been writing and copying into the addons directory and reloading then updating. The add-ons work and the process is ok but laborious as I develop and test.
I would like to use a private Git repository to provide my add-ons to HA, I’ve got a private repo set up on GitHub.
I just can’t work out how to add my GitHub repo and put my credentials into HA/supervisor.
Am I trying to do the impossible?
(Ultimately, I’d like to connect to my local Docker Registry too so I can build on a PC rather than my Pi)
The only thing is though that when I try and install the addon I have created, I get an error if the package is private - I have to make the package public to allow an install.
Are you or anyone else aware how you can authenticate when downloading the created packages from the addon installer?
My repo is private and at the top level I have a repository.json file and thee folders, one for each of my three private packages. So, all of this is private to me. I can send a screenshot if that helps explain this better.
Unfortunately, authentication via the link no longer works. Is there another possibility?
This is what the error message looks like.
Cmd(‘git’) failed due to: exit code(128) cmdline: git clone -v --recursive --depth=1 --shallow-submodules – https://*****:*****@github.com/***/ha-addons.git /data/addons/git/*** stderr:
'Cloning into ‘/data/addons/git/***’… remote: Support for password authentication was removed on August 13, 2021. remote: Please see About remote repositories - GitHub Docs for information on currently recommended modes of authentication. fatal: Authentication failed for ‘https://github.com/***/ha-addons.git/’ ’