Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool-cache downloadTool fails to download file saying "Invalid URL" #1692

Open
mcafaro opened this issue Mar 19, 2024 · 0 comments
Open

tool-cache downloadTool fails to download file saying "Invalid URL" #1692

mcafaro opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mcafaro
Copy link

mcafaro commented Mar 19, 2024

Describe the bug
Attempting to use tool-cache downloadTool to download Amazon Corretto 8 from the following URL results in an "Invalid URL" error.

https://corretto.aws/downloads/latest/amazon-corretto-8-x64-macos-jdk.pkg

The URL is not invalid.

To Reproduce

import * as tc from "@actions/tool-cache";
tc.downloadTool("https://corretto.aws/downloads/latest/amazon-corretto-8-x64-macos-jdk.pkg");

Notice downloadTool errors with "Invalid URL".

Expected behavior
downloadTool downloads the pkg file.

Additional context
Confirmed the issue on macos-14 runner. I suspect the issue would be present on all operating systems.

@mcafaro mcafaro added the bug Something isn't working label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant