Skip to content

ci: resolve GitHub API rate limiting in docs deploy#29

Merged
PythonWoods-Dev merged 1 commit intomainfrom
fix/ci-lucide-auth
Apr 3, 2026
Merged

ci: resolve GitHub API rate limiting in docs deploy#29
PythonWoods-Dev merged 1 commit intomainfrom
fix/ci-lucide-auth

Conversation

@PythonWoods-Dev
Copy link
Copy Markdown
Contributor

Summary

Fixes the JSONDecodeError in the deploy-docs workflow caused by GitHub API rate limiting when downloading Lucide Icons.

Technical Fix

  • Added GH_TOKEN: ${{ github.token }} to the environment variables of the download step.
  • Updated curl commands to use the Authorization: Bearer header.
  • This increases the rate limit from 60 to 5000 requests per hour, ensuring CI stability during high-frequency release cycles.

Impact

This is a critical infrastructure fix required to successfully build and deploy the documentation for the v0.5.0a3 release.

Unauthenticated requests to api.github.com/repos/.../releases/latest
hit the 60 req/hr rate limit, returning an empty 403 body that caused
json.load() to raise JSONDecodeError. Fix by:
- Injecting GITHUB_TOKEN as Bearer auth header (rate limit → 5000/hr)
- Capturing the API response to $RELEASE_JSON before piping to python3
  so a failed curl exits non-zero via set -euo pipefail instead of
  silently feeding empty stdin to json.load()
@PythonWoods-Dev PythonWoods-Dev merged commit 9ca13ff into main Apr 3, 2026
2 checks passed
@PythonWoods-Dev PythonWoods-Dev deleted the fix/ci-lucide-auth branch April 4, 2026 11:59
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