Skip to content

Commit 91b4b8e

Browse files
authored
Merge pull request #33 from sourcetoad/SIP-253-self-runner
SIP-253 - Support Self Runners
2 parents cc6ca27 + dd1826e commit 91b4b8e

File tree

8 files changed

+294
-242
lines changed

8 files changed

+294
-242
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ Setup an SSH socket with a private key.
66

77
Following inputs can be used as `step.with` keys
88

9-
| Name | Required | Type | Description |
10-
|---------------|----------|--------|---------------------------------|
11-
| `host` | Yes | String | Remote hostname. |
12-
| `port` | No | Number | SSH Port (default: `22`). |
13-
| `socket-path` | Yes | String | Path at which to create socket. |
14-
| `key` | Yes | String | base64 private key |
9+
| Name | Required | Type | Description |
10+
|---------------|----------|--------|------------------------------------|
11+
| `host` | Yes | String | Remote hostname. |
12+
| `port` | No | Number | SSH Port (default: `22`). |
13+
| `socket-path` | Yes | String | Path at which to create socket. |
14+
| `key` | Yes | String | base64 private key |
15+
| `lifetime` | No | Number | Seconds to keep key (default: 600) |
1516

1617
You may encode your private key in base64 via:
1718

@@ -25,6 +26,7 @@ Store that in GitHub Secrets to securely pass to the action.
2526
| Name | Description |
2627
|---------------|----------------------------------|
2728
| `socket-path` | Path at which socket was created |
29+
| `agent-pid` | SSH Agent PID. |
2830

2931
### Example usage
3032
```yaml
@@ -44,7 +46,7 @@ Store that in GitHub Secrets to securely pass to the action.
4446
## Development
4547
Make `ncc` available in your build environment:
4648
```shell
47-
npm i -g @zeit/ncc
49+
npm i -g @vercel/ncc
4850
```
4951

5052
Install package dependencies:

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ inputs:
1818
key:
1919
description: 'ssh private key'
2020
required: true
21+
lifetime:
22+
description: 'how many seconds to keep socket live'
23+
required: false
24+
default: '600'
2125
outputs:
2226
socket-path:
2327
description: 'path at which socket was created'
2428
runs:
25-
using: 'node12'
29+
using: 'node16'
2630
main: 'dist/index.js'

0 commit comments

Comments
 (0)