diff --git a/action.yml b/action.yml index ad513dd..1eda3fe 100644 --- a/action.yml +++ b/action.yml @@ -3,10 +3,6 @@ description: "Transform and move code between repositories" author: "Sudoblock" inputs: - ssh_key: - description: "SSH public key." - required: false - access_token: description: "Personal access token with `repo` permissions. Always required on *destination*. Required on *SoT* only if the variable `sot_branch` below is left empty and to decide between **push** and **init** workflows." required: true @@ -89,11 +85,6 @@ inputs: required: false default: "" - ssh_known_hosts: - description: "SSH known hosts file contents, for authenticating with Copybara with another Git server. GitHub is always included by default." - required: false - default: "" - copybara_image: description: "Copybara Docker image to run." required: false diff --git a/src/copybara.ts b/src/copybara.ts index 4d96722..220fcfc 100644 --- a/src/copybara.ts +++ b/src/copybara.ts @@ -62,10 +62,6 @@ export class CopyBara { `-v`, `${process.cwd()}:/usr/src/app`, `-v`, - `${hostConfig.sshKeyPath}:/root/.ssh/id_rsa`, - `-v`, - `${hostConfig.knownHostsPath}:/root/.ssh/known_hosts`, - `-v`, `${hostConfig.cbConfigPath}:/root/copy.bara.sky`, `-v`, `${hostConfig.gitConfigPath}:/root/.gitconfig`, diff --git a/src/hostConfig.ts b/src/hostConfig.ts index a78719d..0a45cb3 100644 --- a/src/hostConfig.ts +++ b/src/hostConfig.ts @@ -4,8 +4,6 @@ import { homedir } from "os"; export class hostConfig { static gitConfigPath = homedir() + "/.gitconfig"; static gitCredentialsPath = homedir() + "/.git-credentials"; - static sshKeyPath = homedir() + "/.ssh/id_rsa"; - static knownHostsPath = homedir() + "/.ssh/known_hosts"; static cbConfigPath = homedir() + "/copy.bara.sky"; static githubKnownHost = @@ -30,10 +28,6 @@ export class hostConfig { return this.save(this.gitCredentialsPath, `https://user:${accessToken}@github.com`); } - static async saveKnownHosts(knownHosts: string): Promise { - return this.save(this.knownHostsPath, `${this.githubKnownHost}\n${knownHosts}`); - } - static async saveCopybaraConfig(config: string): Promise { return this.save(this.cbConfigPath, config); }