Add fetch

This commit is contained in:
Justin Hutchings
2024-08-26 22:51:04 +00:00
committed by GitHub
parent 61b2daa67f
commit 5787da590b
+1 -1
View File
@@ -149,7 +149,7 @@ export default class ComponentDetection {
}
const serverUrl = core.getInput('releaseServerUrl') || github.context.apiUrl;
//const octokit = github.getOctokit(githubToken, { baseUrl: serverUrl });
const octokit = new Octokit({ auth: githubToken, baseUrl: serverUrl });
const octokit = new Octokit({ auth: githubToken, baseUrl: serverUrl, request: { fetch: fetch} });
const owner = "microsoft";
const repo = "component-detection";
core.debug("Attempting to download latest release from " + serverUrl);