Repository navigation
Fix arduino/setup-protoc rate-limit failures in sdk-gogenerate - #95
Merged
Merged
Conversation
Fixes 'unable to get latest version' errors from arduino/setup-protoc caused by unauthenticated GitHub API rate limiting. GITHUB_TOKEN is automatically available in workflow_call runs, so no caller repo needs to change how it invokes this reusable workflow. Signed-off-by: Botond Szirtes <botond.szirtes@est.tech>
bszirtes
added a commit
to networkservicemesh/sdk
that referenced
this pull request
Aug 18, 2026
…ache arduino/setup-protoc is failing with 'unable to get latest version' due to GitHub API rate limiting. The fix (repo-token) was merged in networkservicemesh/.github#95, but GitHub's cache for the @main ref of that reusable workflow hasn't picked it up yet even ~50 minutes after merge. Inline the job locally with the token included so CI on this release branch isn't blocked. TODO: revert once the upstream cache catches up. Signed-off-by: Botond Szirtes <botond.szirtes@est.tech>
bszirtes
added a commit
to networkservicemesh/sdk
that referenced
this pull request
Aug 18, 2026
…ache arduino/setup-protoc is failing with 'unable to get latest version' due to GitHub API rate limiting. The fix (repo-token) was merged in networkservicemesh/.github#95, but GitHub's cache for the @main ref of that reusable workflow hasn't picked it up yet even ~50 minutes after merge. Inline the job locally with the token included so CI on this release branch isn't blocked. TODO: revert once the upstream cache catches up. Signed-off-by: Botond Szirtes <botond.szirtes@est.tech>
bszirtes
added a commit
that referenced
this pull request
Aug 18, 2026
arduino/setup-protoc@v3 fails with 'unable to get latest version' even with a pinned version and repo-token set (confirmed reproducing consistently across networkservicemesh/sdk and networkservicemesh/sdk-kernel CI runs, on the correct merged commit). The action's computeVersion() always calls the GitHub releases API to resolve/validate the pinned version, regardless of the token, and this call is failing in the GitHub Actions runner environment. Download the pinned protoc release archive directly from GitHub instead, bypassing that API call entirely. This is a superseding fix for #95. Signed-off-by: Botond Szirtes <botond.szirtes@est.tech>
bszirtes
added a commit
to networkservicemesh/sdk-kernel
that referenced
this pull request
Aug 18, 2026
arduino/setup-protoc@v3 fails with 'unable to get latest version' even with the version pinned and repo-token set (see networkservicemesh/.github#95 and #96). Inline the gogenerate job locally with a direct protoc download to unblock CI on this release branch. TODO: revert once networkservicemesh/.github#96 is merged and picked up by the @main ref. Signed-off-by: Botond Szirtes <botond.szirtes@est.tech>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
repo-token: ${{ secrets.GITHUB_TOKEN }}to thearduino/setup-protoc@v3step insdk-gogenerate.yaml.Why
The gogenerate check was intermittently failing with:
This is caused by
arduino/setup-protochitting GitHub's unauthenticated API rate limit (60 req/hour per IP) when resolving/downloading the protoc release, even though the version is pinned (3.8.0).Passing
repo-tokenraises this to the authenticated rate limit and avoids the failure.Caller impact
None.
GITHUB_TOKENis automatically provided toworkflow_callruns, so repos calling this reusable workflow (e.g.networkservicemesh/sdk) don't need any changes to theirci.yaml.Testing
arduino/setup-protoc(onlysdk-gogenerate.yamldoes;cmd-gogenerate.yamldoesn't use protoc at all).