diff --git a/dist/index.js b/dist/index.js index dee4468..a01287a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2168,7 +2168,7 @@ function downloadArtifact(octokit, artifactId, fileName, token) { if (typeof url !== 'string') { throw new Error(`Location header has unexpected value: ${url}`); } - const downloadStream = got_1.default.stream(url, { headers }); + const downloadStream = got_1.default.stream(url); const fileWriterStream = (0, fs_1.createWriteStream)(fileName); core.info(`Downloading ${url}`); downloadStream.on('downloadProgress', ({ transferred }) => { diff --git a/src/utils/github-utils.ts b/src/utils/github-utils.ts index 1d4add7..56e6c88 100644 --- a/src/utils/github-utils.ts +++ b/src/utils/github-utils.ts @@ -70,7 +70,7 @@ export async function downloadArtifact( throw new Error(`Location header has unexpected value: ${url}`) } - const downloadStream = got.stream(url, {headers}) + const downloadStream = got.stream(url) const fileWriterStream = createWriteStream(fileName) core.info(`Downloading ${url}`)