Skip to content

Commit bec1954

Browse files
committed
change auth token format
Signed-off-by: Rajat Jindal <[email protected]>
1 parent 8a6aa3e commit bec1954

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

dist/index.js

Lines changed: 3 additions & 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ async function run(): Promise<void> {
6363
for (const asset of release?.assets || []) {
6464
core.info(`calculating sha of ${asset.browser_download_url}`)
6565
const downloadPath = await tc.downloadTool(
66-
asset.browser_download_url,
66+
asset.url,
6767
undefined,
68-
token ? `Bearer ${token}` : undefined
68+
token ? `token ${token}` : undefined,
69+
{
70+
accept: 'application/octet-stream'
71+
}
6972
)
7073
const buffer = fs.readFileSync(downloadPath)
7174
releaseMap.set(

0 commit comments

Comments
 (0)