-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
action: query the Go proxy for CUE versions
We believe that the cause of intermittent GitHub API 403 responses, which are now exposed to the Action consumer and not masked, is that this Action doesn't use a GITHUB_TOKEN (even when provided as an envvar) to authenticate to the GitHub API. Therefore, all our API requests are unauthenticated, which are nominally rate-limited at a level which shouldn't affect any consumer. However, they *do* affect consumers: ourselves, in testing, and also in production. We hypothesise that this is because GitHub-hosted GitHub Actions runners are issued IP addresses from some shared pool, thus any requests "we" make are counted against a rate limit that a previous user may have already used up. To get round this, this commit changes the Action's behaviour to use the Go Proxy as the upstream source of truth of which CUE version is the "latest", instead of the GitHub API. This has the advantage of harmonising the Action and the Go CLI's concepts of "latest". An alternative would be to teach this Action's API requests to use the GITHUB_TOKEN, if provided. This would have the downside of needing the Action's consumers to provide this in their workflows, so we avoid this alternative for now. Signed-off-by: Jonathan Matthews <[email protected]>
- Loading branch information
1 parent
77366d1
commit ce1ecde
Showing
5 changed files
with
14 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters