From dd9cf64dd5e28264a1f1484f2fe17e69268c1cad Mon Sep 17 00:00:00 2001 From: Connor Younglund Date: Wed, 13 Oct 2021 13:10:15 -0400 Subject: [PATCH] replace `\n` with newline for GitHub App private key Signed-off-by: Connor Younglund --- packages/integration/src/github/GithubCredentialsProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration/src/github/GithubCredentialsProvider.ts b/packages/integration/src/github/GithubCredentialsProvider.ts index 7e6057fc8d..278a1ed028 100644 --- a/packages/integration/src/github/GithubCredentialsProvider.ts +++ b/packages/integration/src/github/GithubCredentialsProvider.ts @@ -74,7 +74,7 @@ class GithubAppManager { this.baseUrl = baseUrl; this.baseAuthConfig = { appId: config.appId, - privateKey: config.privateKey, + privateKey: config.privateKey.replace(/\\n/gm, '\n'), }; this.appClient = new Octokit({ baseUrl,