-
Notifications
You must be signed in to change notification settings - Fork 27
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
Pass headers to download url #190
Comments
The short answer is no. Let me explain it: depending on how you're using Terralist there are 2 possibilities:
However, in your case, you're trying to download assets from a particular release, and not the entire tag, and AFAIK this is not possible with go-getter, since this is not a git-specific feature, but a GitHub-specific. I see there's a way for the |
In the latest release we have git installed, it works if I download the entire tag, but I have some modules that have symlinks to other modules and it doesn't work hashicorp/go-getter#60. When I release a new version of modules that reference other modules, I upload an asset that follows symlinks, but to download it I have to use api.github.com and HTTP. |
Instead of uploading the asset to github and downloading from the api, I uploaded it to s3 and downloaded from there. |
Is it possible to pass auth token in the headers to
download_url
? I need it to download asset from api.github.com:The text was updated successfully, but these errors were encountered: