Skip to content

Commit

Permalink
Change from convenience method to rest command
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutchings1 authored Aug 26, 2024
1 parent b241c92 commit 6b81b8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions componentDetection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ export default class ComponentDetection {
core.debug("Attempting to download latest release from " + serverUrl);

try {
const latestRelease = await octokit.rest.repos.getLatestRelease({
owner, repo
});
const latestRelease = await octokit.request("GET /repos/{owner}/{repo}/releases/latest", {owner, repo});

var downloadURL: string = "";
const assetName = process.platform === "win32" ? "component-detection-win-x64.exe" : "component-detection-linux-x64";
Expand Down
4 changes: 1 addition & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 6b81b8e

Please sign in to comment.