Skip to content

Commit 5f64c95

Browse files
committed
chore: improve SSH key handling and documentation
- Upgrade the ssh-action package from version `v0.1.8` to `v0.1.9` - Update the ssh-keygen command to use `-t ed25519 -a 200 -C` flag with an email address - Clarify how to pass environment variables as strings in the `env` object - Add a command to check the fingerprint of an ed25519 key in the README - Remove duplicate Host entry for `FooServer` in the Chinese version of the README Signed-off-by: Bo-Yi.Wu <[email protected]>
1 parent 3cd1bcf commit 5f64c95

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
runs-on: ubuntu-latest
6161
steps:
6262
- name: executing remote ssh commands using password
63-
uses: appleboy/[email protected].8
63+
uses: appleboy/[email protected].9
6464
with:
6565
host: ${{ secrets.HOST }}
6666
username: ${{ secrets.USERNAME }}
@@ -161,7 +161,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
161161

162162
```yaml
163163
- name: executing remote ssh commands using password
164-
uses: appleboy/[email protected].8
164+
uses: appleboy/[email protected].9
165165
with:
166166
host: ${{ secrets.HOST }}
167167
username: ${{ secrets.USERNAME }}
@@ -174,7 +174,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
174174
175175
```yaml
176176
- name: executing remote ssh commands using ssh key
177-
uses: appleboy/[email protected].8
177+
uses: appleboy/[email protected].9
178178
with:
179179
host: ${{ secrets.HOST }}
180180
username: ${{ secrets.USERNAME }}
@@ -187,7 +187,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
187187
188188
```yaml
189189
- name: multiple command
190-
uses: appleboy/[email protected].8
190+
uses: appleboy/[email protected].9
191191
with:
192192
host: ${{ secrets.HOST }}
193193
username: ${{ secrets.USERNAME }}
@@ -204,7 +204,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
204204
205205
```diff
206206
- name: multiple host
207-
uses: appleboy/[email protected].8
207+
uses: appleboy/[email protected].9
208208
with:
209209
- host: "foo.com"
210210
+ host: "foo.com,bar.com"
@@ -220,7 +220,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
220220
221221
```diff
222222
- name: multiple host
223-
uses: appleboy/[email protected].8
223+
uses: appleboy/[email protected].9
224224
with:
225225
- host: "foo.com"
226226
+ host: "foo.com:1234,bar.com:5678"
@@ -235,7 +235,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
235235
236236
```diff
237237
- name: multiple host
238-
uses: appleboy/[email protected].8
238+
uses: appleboy/[email protected].9
239239
with:
240240
host: "foo.com,bar.com"
241241
+ sync: true
@@ -251,7 +251,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
251251
252252
```diff
253253
- name: pass environment
254-
uses: appleboy/[email protected].8
254+
uses: appleboy/[email protected].9
255255
+ env:
256256
+ FOO: "BAR"
257257
+ BAR: "FOO"
@@ -276,7 +276,7 @@ _Inside `env` object, you need to pass every environment variable as a string, p
276276

277277
```diff
278278
- name: stop script if command error
279-
uses: appleboy/[email protected].8
279+
uses: appleboy/[email protected].9
280280
with:
281281
host: ${{ secrets.HOST }}
282282
username: ${{ secrets.USERNAME }}
@@ -329,7 +329,7 @@ Host FooServer
329329

330330
```diff
331331
- name: ssh proxy command
332-
uses: appleboy/[email protected].8
332+
uses: appleboy/[email protected].9
333333
with:
334334
host: ${{ secrets.HOST }}
335335
username: ${{ secrets.USERNAME }}
@@ -352,7 +352,7 @@ It is not uncommon for files to leak from backups or decommissioned hardware, an
352352

353353
```diff
354354
- name: ssh key passphrase
355-
uses: appleboy/[email protected].8
355+
uses: appleboy/[email protected].9
356356
with:
357357
host: ${{ secrets.HOST }}
358358
username: ${{ secrets.USERNAME }}
@@ -378,7 +378,7 @@ Now you can adjust you config:
378378

379379
```diff
380380
- name: ssh key passphrase
381-
uses: appleboy/[email protected].8
381+
uses: appleboy/[email protected].9
382382
with:
383383
host: ${{ secrets.HOST }}
384384
username: ${{ secrets.USERNAME }}

README.zh-tw.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- name: executing remote ssh commands using password
61-
uses: appleboy/[email protected].8
61+
uses: appleboy/[email protected].9
6262
with:
6363
host: ${{ secrets.HOST }}
6464
username: ${{ secrets.USERNAME }}
@@ -157,7 +157,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
157157

158158
```yaml
159159
- name: executing remote ssh commands using password
160-
uses: appleboy/[email protected].8
160+
uses: appleboy/[email protected].9
161161
with:
162162
host: ${{ secrets.HOST }}
163163
username: ${{ secrets.USERNAME }}
@@ -170,7 +170,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
170170
171171
```yaml
172172
- name: executing remote ssh commands using ssh key
173-
uses: appleboy/[email protected].8
173+
uses: appleboy/[email protected].9
174174
with:
175175
host: ${{ secrets.HOST }}
176176
username: ${{ secrets.USERNAME }}
@@ -183,7 +183,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
183183
184184
```yaml
185185
- name: multiple command
186-
uses: appleboy/[email protected].8
186+
uses: appleboy/[email protected].9
187187
with:
188188
host: ${{ secrets.HOST }}
189189
username: ${{ secrets.USERNAME }}
@@ -200,7 +200,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
200200
201201
```diff
202202
- name: multiple host
203-
uses: appleboy/[email protected].8
203+
uses: appleboy/[email protected].9
204204
with:
205205
- host: "foo.com"
206206
+ host: "foo.com,bar.com"
@@ -216,7 +216,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
216216
217217
```diff
218218
- name: multiple host
219-
uses: appleboy/[email protected].8
219+
uses: appleboy/[email protected].9
220220
with:
221221
- host: "foo.com"
222222
+ host: "foo.com:1234,bar.com:5678"
@@ -231,7 +231,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
231231
232232
```diff
233233
- name: multiple host
234-
uses: appleboy/[email protected].8
234+
uses: appleboy/[email protected].9
235235
with:
236236
host: "foo.com,bar.com"
237237
+ sync: true
@@ -247,7 +247,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
247247
248248
```diff
249249
- name: pass environment
250-
uses: appleboy/[email protected].8
250+
uses: appleboy/[email protected].9
251251
+ env:
252252
+ FOO: "BAR"
253253
+ BAR: "FOO"
@@ -272,7 +272,7 @@ _在 `env` 對象中,您需要將每個環境變量作為字符串傳遞,傳
272272

273273
```diff
274274
- name: stop script if command error
275-
uses: appleboy/[email protected].8
275+
uses: appleboy/[email protected].9
276276
with:
277277
host: ${{ secrets.HOST }}
278278
username: ${{ secrets.USERNAME }}
@@ -325,7 +325,7 @@ Host FooServer
325325

326326
```diff
327327
- name: ssh proxy command
328-
uses: appleboy/[email protected].8
328+
uses: appleboy/[email protected].9
329329
with:
330330
host: ${{ secrets.HOST }}
331331
username: ${{ secrets.USERNAME }}
@@ -346,7 +346,7 @@ Host FooServer
346346

347347
```diff
348348
- name: ssh key passphrase
349-
uses: appleboy/[email protected].8
349+
uses: appleboy/[email protected].9
350350
with:
351351
host: ${{ secrets.HOST }}
352352
username: ${{ secrets.USERNAME }}
@@ -372,7 +372,7 @@ ssh example.com ssh-keygen -l -f /etc/ssh/ssh_host_ed25519_key.pub | cut -d ' '
372372

373373
```diff
374374
- name: ssh key passphrase
375-
uses: appleboy/[email protected].8
375+
uses: appleboy/[email protected].9
376376
with:
377377
host: ${{ secrets.HOST }}
378378
username: ${{ secrets.USERNAME }}

0 commit comments

Comments
 (0)