hof mod supports authenticating to code hosts
for private modules and increased rate limits.
When you run
hof mod, it looks for authentication methods
to use when fetching source code.
We recommend setting up one of these metheods for your primary code hosts,
especially GitHub for better rate limits in CI,
even if you only use public repositories.
The lookup order is:
- ENV variables
Used if the
.netrc file exists in the home directory and has a matching machine name.
On Windows, the file is
These environment variables are recognized for three major code hosts.
The following locations are searched for sshkey configuration