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,