Skip to content

Commit 6b81b8e

Browse files
authored
Change from convenience method to rest command
1 parent b241c92 commit 6b81b8e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

componentDetection.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ export default class ComponentDetection {
160160
core.debug("Attempting to download latest release from " + serverUrl);
161161

162162
try {
163-
const latestRelease = await octokit.rest.repos.getLatestRelease({
164-
owner, repo
165-
});
163+
const latestRelease = await octokit.request("GET /repos/{owner}/{repo}/releases/latest", {owner, repo});
166164

167165
var downloadURL: string = "";
168166
const assetName = process.platform === "win32" ? "component-detection-win-x64.exe" : "component-detection-linux-x64";

dist/index.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)