Change octokit from Actions specific one to generic one
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import * as github from '@actions/github'
|
||||
import * as core from '@actions/core'
|
||||
import { Octokit, App } from "octokit"
|
||||
import {
|
||||
PackageCache,
|
||||
BuildTarget,
|
||||
@@ -147,7 +148,8 @@ export default class ComponentDetection {
|
||||
githubToken = "";
|
||||
}
|
||||
const serverUrl = core.getInput('releaseServerUrl') || github.context.apiUrl;
|
||||
const octokit = github.getOctokit(githubToken, { baseUrl: serverUrl });
|
||||
//const octokit = github.getOctokit(githubToken, { baseUrl: serverUrl });
|
||||
const octokit = new Octokit({ auth: githubToken, baseUrl: serverUrl });
|
||||
const owner = "microsoft";
|
||||
const repo = "component-detection";
|
||||
core.debug("Attempting to download latest release from " + serverUrl);
|
||||
|
||||
Generated
+1730
File diff suppressed because it is too large
Load Diff
@@ -31,6 +31,7 @@
|
||||
"cross-fetch": "^3.1.5",
|
||||
"dotenv": "^16.0.3",
|
||||
"fs": "^0.0.1-security",
|
||||
"octokit": "^4.0.2",
|
||||
"tar": "^6.2.1",
|
||||
"yaml": "^2.2.2"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user