File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -364,18 +364,15 @@ try {
364
364
console . log ( "Adding private key(s) to agent" ) ;
365
365
child_process . execFileSync ( sshAddCmd , [ privateKey ] ) ;
366
366
367
- console . log ( "Key(s) added:" ) ;
368
-
367
+ console . log ( "Key added:" ) ;
369
368
child_process . execFileSync ( sshAddCmd , [ '-l' ] , { stdio : 'inherit' } ) ;
370
-
371
369
console . log ( 'Configuring deployment key(s)' ) ;
372
-
373
370
child_process . execFileSync ( sshAddCmd , [ '-L' ] ) . toString ( ) . trim ( ) . split ( / \r ? \n / ) . forEach ( function ( key ) {
374
371
const parts = key . match ( / \b g i t h u b \. c o m [: / ] ( [ _ . a - z 0 - 9 - ] + \/ [ _ . a - z 0 - 9 - ] + ) / i) ;
375
372
376
373
if ( ! parts ) {
377
374
if ( logPublicKey ) {
378
- console . log ( `Comment for (public) key ' ${ key } ' does not match GitHub URL pattern. Not treating it as a GitHub deploy key.` ) ;
375
+ console . log ( `Comment for (public) key does not match GitHub URL pattern. Not treating it as a GitHub deploy key.` ) ;
379
376
}
380
377
return ;
381
378
}
@@ -395,7 +392,6 @@ try {
395
392
+ ` IdentitiesOnly yes\n` ;
396
393
397
394
fs . appendFileSync ( `${ homeSsh } /config` , sshConfig ) ;
398
-
399
395
console . log ( `Added deploy-key mapping: Use identity '${ homeSsh } /key-${ sha256 } ' for GitHub repository ${ ownerAndRepo } ` ) ;
400
396
} ) ;
401
397
Original file line number Diff line number Diff line change @@ -44,18 +44,15 @@ try {
44
44
console . log ( "Adding private key(s) to agent" ) ;
45
45
child_process . execFileSync ( sshAddCmd , [ privateKey ] ) ;
46
46
47
- console . log ( "Key(s) added:" ) ;
48
-
47
+ console . log ( "Key added:" ) ;
49
48
child_process . execFileSync ( sshAddCmd , [ '-l' ] , { stdio : 'inherit' } ) ;
50
-
51
49
console . log ( 'Configuring deployment key(s)' ) ;
52
-
53
50
child_process . execFileSync ( sshAddCmd , [ '-L' ] ) . toString ( ) . trim ( ) . split ( / \r ? \n / ) . forEach ( function ( key ) {
54
51
const parts = key . match ( / \b g i t h u b \. c o m [: / ] ( [ _ . a - z 0 - 9 - ] + \/ [ _ . a - z 0 - 9 - ] + ) / i) ;
55
52
56
53
if ( ! parts ) {
57
54
if ( logPublicKey ) {
58
- console . log ( `Comment for (public) key ' ${ key } ' does not match GitHub URL pattern. Not treating it as a GitHub deploy key.` ) ;
55
+ console . log ( `Comment for (public) key does not match GitHub URL pattern. Not treating it as a GitHub deploy key.` ) ;
59
56
}
60
57
return ;
61
58
}
75
72
+ ` IdentitiesOnly yes\n` ;
76
73
77
74
fs . appendFileSync ( `${ homeSsh } /config` , sshConfig ) ;
78
-
79
75
console . log ( `Added deploy-key mapping: Use identity '${ homeSsh } /key-${ sha256 } ' for GitHub repository ${ ownerAndRepo } ` ) ;
80
76
} ) ;
81
77
You can’t perform that action at this time.
0 commit comments