Adds your authentication configuration to the .netrc
file.
Description
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.
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.
Add this step directly to your workflow in the Bitrise Workflow Editor.
You can also run this step directly with Bitrise CLI.
Inputs
Key | Description | Flags | Default |
---|---|---|---|
host |
The host where the username and password will be used. For example: github.com | required | |
username |
The username used for the host to authenticate. | required, sensitive | |
password |
The password (or Auth Token/Access Token) used for the host to authenticate. | required, sensitive |
Outputs
There are no outputs defined in this stepWe welcome pull requests and issues against this repository.
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.
Learn more about developing steps: