First of all, install Homebrew itself.
As the tap is a private Git repo, you need to generate a GitHub token
with repo
scope and then add this token to your ~/.netrc
file like this:
machine github.com
login <your GitHub user>
password <your GitHub token>
Now you can add the tap to your system:
brew tap user/repo
Afterwards, you can finally install tools provided by the tap:
Install the current version of tool XYZ:
brew install XYZ
Install the latest version of tool XYZ:
brew rm XYZ; brew install --HEAD XYZ
@cbzehner I think this solution fixes the issue of accessing a private tap but not private code.
The tool my formula is installing is in a private repo and the release is not accessible without custom http headers. This might work if the install step is cloning the repo and building the tool, but then everybody that installs it needs the build dependencies (Go, C++, Rust, whatever).