build-harness
build-harness copied to clipboard
Use github/download-private-release when GITHUB_TOKEN exists
trafficstars
What
- Refactor
github/download-public-releaseto usegithub/download-private-releaseifGITHUB_TOKENexists.
Why
- If
GITHUB_TOKENexists we use an authenticated call that has limits 5000 per day per IP else we call anonymous call that has limits to 60 per day per IP.
Workaround
- Make exits non-zero error if anonymous request limit hit.
I think we should move to using fetch: https://github.com/gruntwork-io/fetch