Skip to content

Commit 9b4a818

Browse files
authored
Change octokit from Actions specific one to generic one
1 parent 0f2d542 commit 9b4a818

File tree

3 files changed

+1747
-14
lines changed

3 files changed

+1747
-14
lines changed

componentDetection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as github from '@actions/github'
22
import * as core from '@actions/core'
3+
import { Octokit, App } from "octokit"
34
import {
45
PackageCache,
56
BuildTarget,
@@ -147,7 +148,8 @@ export default class ComponentDetection {
147148
githubToken = "";
148149
}
149150
const serverUrl = core.getInput('releaseServerUrl') || github.context.apiUrl;
150-
const octokit = github.getOctokit(githubToken, { baseUrl: serverUrl });
151+
//const octokit = github.getOctokit(githubToken, { baseUrl: serverUrl });
152+
const octokit = new Octokit({ auth: githubToken, baseUrl: serverUrl });
151153
const owner = "microsoft";
152154
const repo = "component-detection";
153155
core.debug("Attempting to download latest release from " + serverUrl);

0 commit comments

Comments
 (0)