Skip to content

Commit 78dae4d

Browse files
authored
Improve docs (#50)
* Improve docs * Revert code style change
1 parent 3437f86 commit 78dae4d

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22

33
[![Step changelog](https://shields.io/github/v/release/bitrise-steplib/steps-activate-ssh-key?include_prereleases&label=changelog&color=blueviolet)](https://github.com/bitrise-steplib/steps-activate-ssh-key/releases)
44

5-
Setup the SSH Key to use with the current workflow
5+
Add your SSH key to the build machine to access private repositories
66

77
<details>
88
<summary>Description</summary>
99

10-
This Step makes sure Bitrise has access to your repository and thus able to clone your code to our virtual machines. The Step saves the provided private key of your SSH keypair to a file and then loads it into the user's ssh-agent with `ssh-add`.
10+
This Step makes sure Bitrise has access to your repository when cloning SSH URLs. The Step saves the provided private key of your SSH keypair to a file and then loads it into the SSH agent.
1111

1212
### Configuring the Step
1313

14-
By default, you do not have to change anything about the Step's configuration. All you need to do is make sure that you registered your key pair on Bitrise and the public key at your Git provider. You can generate and register an SSH keypair in two ways.
14+
By default, you do not have to change anything about the Step's configuration.
15+
16+
The step downloads the SSH key defined in your App Settings, so most of the time it's the only thing you need to configure ([more info](https://devcenter.bitrise.io/en/connectivity/configuring-ssh-keys).
17+
18+
All you need to do is make sure that you registered your key pair on Bitrise and the public key at your Git provider. You can generate and register an SSH keypair in two ways.
1519

1620
- Automatically during the [app creation process](https://devcenter.bitrise.io/getting-started/adding-a-new-app/#setting-up-ssh-keys).
1721
- Manually during the app creation process or at any other time. You [generate your own SSH keys](https://devcenter.bitrise.io/faq/how-to-generate-ssh-keypair/) and register them on Bitrise and at your Git provider. The SSH key should not have a passphrase!
1822

19-
Optionally, you can save the private key on the virtual machine. If a key already exists on the path you specified in the **(Optional) path to save the private key** input, it will be overwritten.
23+
Note: if you configure to use HTTPS instead of SSH git access, you don't need to use this Step.
2024

2125
### Troubleshooting
2226

@@ -58,7 +62,7 @@ You can also run this step directly with [Bitrise CLI](https://github.com/bitris
5862

5963
| Environment Variable | Description |
6064
| --- | --- |
61-
| `SSH_AUTH_SOCK` | If the `is_should_start_new_agent` option is enabled, and no accessible ssh-agent is found, the step will start a new ssh-agent. This output environment variable will contain the path of the SSH Auth Socket, which can be used to access the started ssh-agent. |
65+
| `SSH_AUTH_SOCK` | If the `is_should_start_new_agent` option is enabled, and no accessible ssh-agent is found, the step will start a new ssh-agent. This output contains the path of the socket created by ssh-agent, which can be used to access the started ssh-agent ([learn more](https://www.man7.org/linux/man-pages/man1/ssh-agent.1.html)) |
6266
</details>
6367

6468
## 🙋 Contributing

step.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
title: Activate SSH key (RSA private key)
2-
summary: Setup the SSH Key to use with the current workflow
2+
summary: Add your SSH key to the build machine to access private repositories
33
description: |-
4-
This Step makes sure Bitrise has access to your repository and thus able to clone your code to our virtual machines. The Step saves the provided private key of your SSH keypair to a file and then loads it into the user's ssh-agent with `ssh-add`.
4+
This Step makes sure Bitrise has access to your repository when cloning SSH URLs. The Step saves the provided private key of your SSH keypair to a file and then loads it into the SSH agent.
55
66
### Configuring the Step
77
8-
By default, you do not have to change anything about the Step's configuration. All you need to do is make sure that you registered your key pair on Bitrise and the public key at your Git provider. You can generate and register an SSH keypair in two ways.
8+
By default, you do not have to change anything about the Step's configuration.
9+
10+
The step downloads the SSH key defined in your App Settings, so most of the time it's the only thing you need to configure ([more info](https://devcenter.bitrise.io/en/connectivity/configuring-ssh-keys).
11+
12+
All you need to do is make sure that you registered your key pair on Bitrise and the public key at your Git provider. You can generate and register an SSH keypair in two ways.
913
1014
- Automatically during the [app creation process](https://devcenter.bitrise.io/getting-started/adding-a-new-app/#setting-up-ssh-keys).
1115
- Manually during the app creation process or at any other time. You [generate your own SSH keys](https://devcenter.bitrise.io/faq/how-to-generate-ssh-keypair/) and register them on Bitrise and at your Git provider. The SSH key should not have a passphrase!
1216
13-
Optionally, you can save the private key on the virtual machine. If a key already exists on the path you specified in the **(Optional) path to save the private key** input, it will be overwritten.
17+
Note: if you configure to use HTTPS instead of SSH git access, you don't need to use this Step.
1418
1519
### Troubleshooting
1620
@@ -93,10 +97,8 @@ inputs:
9397
outputs:
9498
- SSH_AUTH_SOCK:
9599
opts:
96-
title: SSH Auth Socket info, in case the ssh-agent was started by this step
100+
title: SSH agent socket path
97101
description: |-
98-
If the `is_should_start_new_agent` option is enabled, and no accessible
99-
ssh-agent is found, the step will start a new ssh-agent.
102+
If the `is_should_start_new_agent` option is enabled, and no accessible ssh-agent is found, the step will start a new ssh-agent.
100103
101-
This output environment variable will contain the path of the
102-
SSH Auth Socket, which can be used to access the started ssh-agent.
104+
This output contains the path of the socket created by ssh-agent, which can be used to access the started ssh-agent ([learn more](https://www.man7.org/linux/man-pages/man1/ssh-agent.1.html))

0 commit comments

Comments
 (0)