Skip to content

Commit 1b97ca2

Browse files
authored
Clarify remove identity step input (#48)
* Clarify remove identity step input * Update README * *
1 parent cbd3d00 commit 1b97ca2

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This Step makes sure Bitrise has access to your repository and thus able to clon
1414
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.
1515

1616
- Automatically during the [app creation process](https://devcenter.bitrise.io/getting-started/adding-a-new-app/#setting-up-ssh-keys).
17-
- 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!
17+
- 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!
1818

1919
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.
2020

@@ -47,9 +47,9 @@ You can also run this step directly with [Bitrise CLI](https://github.com/bitris
4747

4848
| Key | Description | Flags | Default |
4949
| --- | --- | --- | --- |
50-
| `ssh_rsa_private_key` | | sensitive | `$SSH_RSA_PRIVATE_KEY` |
51-
| `ssh_key_save_path` | | | `$HOME/.ssh/bitrise_step_activate_ssh_key` |
52-
| `is_remove_other_identities` | (Optional) Remove other or previously loaded keys and restart ssh-agent? Options: * "true" * "false" | | `true` |
50+
| `ssh_rsa_private_key` | The private key of the SSH keypair in RSA format. | sensitive | `$SSH_RSA_PRIVATE_KEY` |
51+
| `ssh_key_save_path` | Path where the private key should be saved | | `$HOME/.ssh/bitrise_step_activate_ssh_key` |
52+
| `is_remove_other_identities` | When the step detects a running SSH agent and this input is true, it removes all loaded identities and restarts the agent before loading the configured key. When there is no running SSH agent, this input has no effect. Note: this only affects the in-memory SSH agent data, keys on disk are not touched. Options: * "true" * "false" | | `true` |
5353
| `verbose` | Enable verbose log option for better debug | required | `false` |
5454
</details>
5555

step.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,27 @@ toolkit:
5151
inputs:
5252
- ssh_rsa_private_key: $SSH_RSA_PRIVATE_KEY
5353
opts:
54-
title: SSH private key in RSA format
54+
title: SSH private key content
55+
description: |-
56+
The private key of the SSH keypair in RSA format.
5557
is_expand: true
5658
is_dont_change_value: true
5759
is_sensitive: true
5860
- ssh_key_save_path: $HOME/.ssh/bitrise_step_activate_ssh_key
5961
opts:
60-
title: |-
61-
(Optional) path to save the private key.
62+
title: SSH key save path
63+
description: Path where the private key should be saved
6264
is_expand: true
6365
is_dont_change_value: true
6466
- is_remove_other_identities: "true"
6567
opts:
66-
title: Remove other identities?
68+
title: Remove other identities from SSH agent
6769
description: |-
68-
(Optional) Remove other or previously loaded keys and restart ssh-agent?
70+
When the step detects a running SSH agent and this input is true, it removes all loaded identities and restarts the agent before loading the configured key.
71+
72+
When there is no running SSH agent, this input has no effect.
73+
74+
Note: this only affects the in-memory SSH agent data, keys on disk are not touched.
6975
7076
Options:
7177
@@ -75,7 +81,6 @@ inputs:
7581
value_options:
7682
- "true"
7783
- "false"
78-
is_dont_change_value: true
7984
- verbose: "false"
8085
opts:
8186
title: Enable verbose logging

0 commit comments

Comments
 (0)