forked from garygrossgarten/github-action-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0811b7
commit 22bdbf9
Showing
14 changed files
with
358 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,35 @@ | ||
name: Hello World Billy Action | ||
name: Run SSH command | ||
author: garygrossgarten | ||
description: Hello World Project to show billy integration in GitHub Javascript Actions | ||
description: Github Action to run commands on a remote server using SSH | ||
inputs: | ||
name: | ||
description: "Name of greeted person" | ||
command: | ||
description: "Command to execute on the remote server." | ||
required: true | ||
host: | ||
description: "Hostname or IP address of the server." | ||
required: false | ||
default: "localhost" | ||
username: | ||
description: "Username for authentication." | ||
required: false | ||
port: | ||
description: "Port number of the server." | ||
required: false | ||
default: "22" | ||
privateKey: | ||
description: "File Location or string that contains a private key for either key-based or hostbased user authentication (OpenSSH format)" | ||
required: false | ||
password: | ||
description: "Password for password-based user authentication." | ||
required: false | ||
passphrase: | ||
description: "For an encrypted private key, this is the passphrase used to decrypt it." | ||
required: false | ||
tryKeyboard: | ||
description: "Try keyboard-interactive user authentication if primary user authentication method fails." | ||
required: false | ||
default: "World" | ||
runs: | ||
using: "node12" | ||
main: "dist/index.js" | ||
color: purple | ||
icon: heart | ||
icon: code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#!/usr/bin/env node | ||
import { CorePlugin } from "@fivethree/billy-plugin-core"; | ||
import { GithubActionsPlugin } from "@garygrossgarten/billy-plugin-github-actions"; | ||
export interface Hello extends CorePlugin, GithubActionsPlugin { | ||
export interface SSH extends CorePlugin, GithubActionsPlugin { | ||
} | ||
export declare class Hello { | ||
hello(name: any): Promise<void>; | ||
export declare class SSH { | ||
ssh(command: string, host: string, username: string, port: number, privateKey: string, password: string, passphrase: string, tryKeyboard: boolean): Promise<void>; | ||
private connect; | ||
private executeCommand; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const keyboardFunction: (password: any) => (name: any, instructions: any, instructionsLang: any, prompts: any, finish: any) => void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.keyboardFunction = password => (name, instructions, instructionsLang, prompts, finish) => { | ||
if (prompts.length > 0 && | ||
prompts[0].prompt.toLowerCase().includes("password")) { | ||
finish([password]); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const privateKey = "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABAhLqUiyV\nARBpBBW328043UAAAAEAAAAAEAAAEXAAAAB3NzaC1yc2EAAAADAQABAAABAQC10IgQWVud\nAlygnpA7erbIQK+e/HzXo1mt3JW7KdXHJAlb3Hb+oeRFHSAnkhzUhfJoL+5CFEkHdxplKL\nj1/WlVT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3Npgaecf32Nyd3kQx9dfw6UtMJ3axfHa2NhcgAKu/H/YtIev0HRNe91nrbdHSqIBjwHG9\n8MuESak1fR743MSzJi6nIXdIBWrRhcjykuIfdDZEfURXttwX+qr96ERcg9joKyDsRCarYM\nhGdMpMX49HNORi383B7v67Q4WRluzBRezlPTtSIch5G0VKZBaJ+hYTqvCrViofIeUYd8R4\nrfFCpC2yyqYMGKcxXwYO8b40vQgFuaQvPT6H7scwFHOfYaPAexUtCzWydSbD6dZhpYHAVi\npAs8+v9WxL03KD+4gm134shT7/8ZISEu3ZD+5LH1O7VZnZz3kHQ2cmN5R4MeEdXW/RLOE0\n+YKF7qWUoTynCFFJbModhtK2pLzjEjG+B1Gjymyv52zmmCeYjr6Lw1EkKyyUR/MULhcelf\nRN4tdafeyTS+cT/N3oqCG/GU+2s5j2vCW+XliNdnS3/a5qtmLAEWzRtWcEC4D2pbFagunU\nSDDJvfo2fr61ocDXsg5hhkJYBA6BFsxdiVVSE/NHEHqpsta0vC\n-----END OPENSSH PRIVATE KEY-----\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.privateKey = `-----BEGIN OPENSSH PRIVATE KEY----- | ||
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABAhLqUiyV | ||
ARBpBBW328043UAAAAEAAAAAEAAAEXAAAAB3NzaC1yc2EAAAADAQABAAABAQC10IgQWVud | ||
AlygnpA7erbIQK+e/HzXo1mt3JW7KdXHJAlb3Hb+oeRFHSAnkhzUhfJoL+5CFEkHdxplKL | ||
j1/WlVTUo2Na8OGmPV2zCdH+XgcLOP7IIrVlVjS67IBFocpnjVjl+9qolkec7cl3k3+tRs | ||
zy/IDs1/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Ku/H/YtIev0HRNe91nrbdHSqIBjwHG9 | ||
8MuESak1fR743MSzJi6nIXdIBWrRhcjykuIfdDZEfURXttwX+qr96ERcg9joKyDsRCarYM | ||
hGdMpMX49HNORi383B7v67Q4WRluzBRezlPTtSIch5G0VKZBaJ+hYTqvCrViofIeUYd8R4 | ||
rfFCpC2yyqYMGKcxXwYO8b40vQgFuaQvPT6H7scwFHOfYaPAexUtCzWydSbD6dZhpYHAVi | ||
pAs8+v9WxL03KD+4gm134shT7/8ZISEu3ZD+5LH1O7VZnZz3kHQ2cmN5R4MeEdXW/RLOE0 | ||
+YKF7qWUoTynCFFJbModhtK2pLzjEjG+B1Gjymyv52zmmCeYjr6Lw1EkKyyUR/MULhcelf | ||
RN4tdafeyTS+cT/N3oqCG/GU+2s5j2vCW+XliNdnS3/a5qtmLAEWzRtWcEC4D2pbFagunU | ||
SDDJvfo2fr61ocDXsg5hhkJYBA6BFsxdiVVSE/NHEHqpsta0vC | ||
-----END OPENSSH PRIVATE KEY----- | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const keyboardFunction: (password: any) => (name: any, instructions: any, instructionsLang: any, prompts: any, finish: any) => void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.keyboardFunction = password => (name, instructions, instructionsLang, prompts, finish) => { | ||
if (prompts.length > 0 && | ||
prompts[0].prompt.toLowerCase().includes("password")) { | ||
finish([password]); | ||
} | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.