icon

Authenticate host with netrc

Adds your authentication configuration to the .netrc file.

This Step adds the authentication configuration (host name, login name and password string) to the .netrc file . The Step lets you store your remote credentials on the build VM once so that later steps can use the credentials for authentication instead of requiring manual input. Examples include HTTPS git clone URLs with OAuth token-based authentication (instead of authenticating with SSH key). Please note that if you already have a .netrc file, the Step will create a backup of the original, and appends the configs to the current one.

Configuring the Step

1.Add the Host name, where the username and password will be used, for example, github.com. 2.Add the Username. 3.Add the password or the authentication token/ access token in the respective field which will be used by the host to authenticate you.

Useful links

Related Steps

Similar steps

The step authenticates with AWS using an OIDC token.

Adds your Bitbucket OAuth configuration to the .netrc file.

The step authenticates with GCP using a service account key.

Adds your GitHub OAuth config to the .netrc file.