From c633158fdad87e8d0608e7967b672c4cc7c38db3 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 26 Oct 2020 23:28:29 +0100 Subject: [PATCH] scaffolder-backend: default github api url to api.github.com --- app-config.yaml | 1 - .../src/scaffolder/stages/publish/publishers.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app-config.yaml b/app-config.yaml index 05bf39b5b3..6e3a68a229 100644 --- a/app-config.yaml +++ b/app-config.yaml @@ -156,7 +156,6 @@ catalog: scaffolder: github: - host: https://github.com token: $env: GITHUB_TOKEN visibility: public # or 'internal' or 'private' diff --git a/plugins/scaffolder-backend/src/scaffolder/stages/publish/publishers.ts b/plugins/scaffolder-backend/src/scaffolder/stages/publish/publishers.ts index 80203e3b54..23f15745ba 100644 --- a/plugins/scaffolder-backend/src/scaffolder/stages/publish/publishers.ts +++ b/plugins/scaffolder-backend/src/scaffolder/stages/publish/publishers.ts @@ -76,7 +76,7 @@ export class Publishers implements PublisherBuilder { const githubToken = githubConfig.getString('token'); const githubHost = - githubConfig.getOptionalString('host') ?? 'https://github.com'; + githubConfig.getOptionalString('host') ?? 'https://api.github.com'; const githubClient = new Octokit({ auth: githubToken, baseUrl: githubHost,