Skip to content

Pass GITHUB_TOKEN to install script to avoid GitHub API rate limiting#3

Merged
albertodebortoli merged 1 commit intomainfrom
use-github-token-avoid-rate-limiting
Mar 10, 2026
Merged

Pass GITHUB_TOKEN to install script to avoid GitHub API rate limiting#3
albertodebortoli merged 1 commit intomainfrom
use-github-token-avoid-rate-limiting

Conversation

@albertodebortoli
Copy link
Member

@albertodebortoli albertodebortoli commented Mar 10, 2026

The curl -fsSL https://luca.tools/install.sh | bash step was making unauthenticated requests to the GitHub API to resolve the latest Luca release. GitHub Actions runners share IP addresses across many concurrent workflows, causing the unauthenticated rate limit (60 requests/hour per IP) to be exhausted frequently — resulting in intermittent 403 errors and requiring multiple workflow re-runs to get a green build.

The fix is to pass the built-in github.token as GITHUB_TOKEN to the install step. See LucaTools/LucaScripts#6.

The install script picks this up automatically when making GitHub API calls, raising the effective rate limit to 1,000 requests/hour per token. No secrets configuration or extra permissions are required — github.token is available in all GitHub Actions workflows by default.

@albertodebortoli albertodebortoli merged commit bd469da into main Mar 10, 2026
4 of 6 checks passed
@albertodebortoli albertodebortoli deleted the use-github-token-avoid-rate-limiting branch March 10, 2026 15:55
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.

1 participant