diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 50fa781..409e1f6 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -74641,6 +74641,9 @@ function createRef(sha) { console.log(`creating ref ${ref} for metrics tree ${sha}`); const octokit = new rest_1.Octokit({ auth: getGitHubToken(), + request: { + fetch: fetch, + }, }); const context = github.context; const response = yield octokit.request(`POST /repos/${context.repo.owner}/${context.repo.repo}/git/refs`, Object.assign(Object.assign({}, context.repo), { ref, @@ -74653,6 +74656,9 @@ function createTree(metadataJson) { return __awaiter(this, void 0, void 0, function* () { const octokit = new rest_1.Octokit({ auth: getGitHubToken(), + request: { + fetch: fetch, + }, }); const context = github.context; core.info(`creating tree at ${context.repo.owner}/${context.repo.repo}`); diff --git a/dist/main/index.js b/dist/main/index.js index 1512fba..17a6ed1 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -75638,6 +75638,9 @@ function createRef(sha) { console.log(`creating ref ${ref} for metrics tree ${sha}`); const octokit = new rest_1.Octokit({ auth: getGitHubToken(), + request: { + fetch: fetch, + }, }); const context = github.context; const response = yield octokit.request(`POST /repos/${context.repo.owner}/${context.repo.repo}/git/refs`, Object.assign(Object.assign({}, context.repo), { ref, @@ -75650,6 +75653,9 @@ function createTree(metadataJson) { return __awaiter(this, void 0, void 0, function* () { const octokit = new rest_1.Octokit({ auth: getGitHubToken(), + request: { + fetch: fetch, + }, }); const context = github.context; core.info(`creating tree at ${context.repo.owner}/${context.repo.repo}`); diff --git a/src/utils.ts b/src/utils.ts index dadf231..63acabc 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -216,6 +216,9 @@ export async function createRef(sha: string) { console.log(`creating ref ${ref} for metrics tree ${sha}`); const octokit = new Octokit({ auth: getGitHubToken(), + request: { + fetch: fetch, + }, }); const context = github.context @@ -234,6 +237,9 @@ export async function createRef(sha: string) { export async function createTree(metadataJson: string): Promise { const octokit = new Octokit({ auth: getGitHubToken(), + request: { + fetch: fetch, + }, }); const context = github.context