Skip to content

Commit 6e37638

Browse files
committed
use github token to download asset, ignored if not provided
Signed-off-by: Rajat Jindal <[email protected]>
1 parent 1a97888 commit 6e37638

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/index.js

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

src/release.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ async function run(): Promise<void> {
5757

5858
const releaseMap = new Map<string, string>()
5959
for (const asset of release?.assets || []) {
60-
const downloadPath = await tc.downloadTool(asset.browser_download_url)
60+
const downloadPath = await tc.downloadTool(
61+
asset.browser_download_url,
62+
undefined,
63+
token
64+
)
6165
const buffer = fs.readFileSync(downloadPath)
6266
releaseMap.set(
6367
asset.browser_download_url,

0 commit comments

Comments
 (0)