Skip to content

Commit

Permalink
fix(auth): use asset url instead of browser download
Browse files Browse the repository at this point in the history
  • Loading branch information
marmorag committed Dec 8, 2022
1 parent 34ee820 commit 9c75322
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@ async function run() {

const extractFn = getExtractFn(asset.name);

const url = asset.browser_download_url
const url = asset.url
const authString = `bearer ${token}`

core.info(`Downloading ${project} from ${url}`)
const binPath = await tc.downloadTool(url, '', authString);
const binPath = await tc.downloadTool(url, '', authString, {
accept: "application/octet-stream"
});
await extractFn(binPath, dest);

if (cacheEnabled && cacheKey !== undefined) {
Expand Down

0 comments on commit 9c75322

Please sign in to comment.