diff --git a/dist/setup.js b/dist/setup.js index 0a2d5af..f7256c4 100644 --- a/dist/setup.js +++ b/dist/setup.js @@ -59,7 +59,7 @@ function getDownloadUrl(options) { cacheKey: null, }; } - const release = options?.version ?? "latest"; + const release = encodeURIComponent(options?.version ?? "latest"); const os = options?.os ?? process.platform; const arch = options?.arch ?? process.arch; const avx2 = options?.avx2 ?? true; diff --git a/src/setup.ts b/src/setup.ts index 1d760d7..d475963 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -79,7 +79,7 @@ function getDownloadUrl(options?: { cacheKey: null, }; } - const release = options?.version ?? "latest"; + const release = encodeURIComponent(options?.version ?? "latest"); const os = options?.os ?? process.platform; const arch = options?.arch ?? process.arch; const avx2 = options?.avx2 ?? true;