fix: authenticate GitHub API curl call in update-android-sdk-version workflow#246
Open
jonathannorris wants to merge 2 commits into
Open
fix: authenticate GitHub API curl call in update-android-sdk-version workflow#246jonathannorris wants to merge 2 commits into
jonathannorris wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Authenticates the GitHub API curl call in the Android SDK version update workflow to avoid hitting the 60 req/hour unauthenticated rate limit on shared runners, which was causing silent skips when fetching the latest release tag.
Changes:
- Adds
Authorization: token ${{ secrets.GITHUB_TOKEN }}header to thecurlcall fetching the latest Android SDK release.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Authorizationheader to thecurlcall that fetches the latest Android SDK version from the GitHub API.Unauthenticated API calls are subject to a 60 req/hour rate limit per IP. The shared GitHub Actions runner pool exhausts this quickly, causing the request to return
nulland the workflow to silently skip the update (or fail in the iOS equivalent). Authenticating withGITHUB_TOKENraises the limit to 5,000 req/hour.Same fix applied to iOS in #245.