diff --git a/dist/index.js b/dist/index.js index dd9c10c..8e945d9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32587,7 +32587,9 @@ const tc = __importStar(__nccwpck_require__(3472)); const github = __importStar(__nccwpck_require__(3228)); const os_1 = __importDefault(__nccwpck_require__(857)); const path_1 = __importDefault(__nccwpck_require__(6928)); -const octokit = github.getOctokit(core.getInput("github-token")); +const octokit = github.getOctokit(core.getInput("github-token"), { + baseUrl: "https://api.github.com", +}); const downloadURL = "https://github.com/spacelift-io/spacectl/releases/download"; /** * Downloads the Spacectl binary from GitHub. diff --git a/src/install.ts b/src/install.ts index 66269b6..214bf73 100644 --- a/src/install.ts +++ b/src/install.ts @@ -4,7 +4,9 @@ import * as github from "@actions/github"; import os from "os"; import path from "path"; -const octokit = github.getOctokit(core.getInput("github-token")); +const octokit = github.getOctokit(core.getInput("github-token"), { + baseUrl: "https://api.github.com", +}); const downloadURL = "https://github.com/spacelift-io/spacectl/releases/download"; /**