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

fix(CI): use the correct version for VespaCLI publishing #32233

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

esolitos
Copy link
Contributor

@esolitos esolitos commented Aug 23, 2024

What

  • Ensure that request to the Github API are authenticated.
  • Ensure the correct VERSION evnronment variable is set from the prepare job

Why

  • Unauthenticated http requests to GH API could return 403 (see an example in this run).

Additional Info

Why do we need a token for a public API endpoint?

My initial assumption was the lack of User-Agent, but a quick test against httpbin.io showed that this was not the case.

As I could not reproduce it, my next assumption is that we might be hitting a Rate Limit, which can return a 429 as well as a 403. This limit is pretty low (60 req/hour) and ties to the IP address, which for GH Shared Runners is shared amongst many runners, so hitting this limit is likely quite easy.

By using the token we get access to a much higher rate limit.


I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@esolitos esolitos marked this pull request as ready for review August 23, 2024 12:18
@esolitos esolitos requested review from mpolden and aressem August 23, 2024 12:18
@esolitos esolitos self-assigned this Aug 23, 2024
@esolitos esolitos merged commit 61e02db into master Aug 26, 2024
6 checks passed
@esolitos esolitos deleted the esolitos-patch-1 branch August 26, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants