Skip to content

fix(imager): authenticate GitHub API requests to avoid the rate limit - #101

Merged
florian-asche merged 1 commit into
mainfrom
ci/imager-json-api-token
Nov 21, 2026
Merged

florian-asche merged 1 commit into
mainfrom
ci/imager-json-api-token

Conversation

@florian-asche

Copy link
Copy Markdown
Owner

What does this implement/fix?

scripts/generate-imager-json.py queried the GitHub releases API anonymously (60 requests per hour and IP) and failed with HTTP Error 403: rate limit exceeded. The script now sends GITHUB_TOKEN as a bearer token when it is set (5000 requests per hour), and the workflow passes secrets.GITHUB_TOKEN to the step. Without a token the behavior is unchanged.

Types of changes

  • CI / workflow change — ci

Tested on

  • Hardware / image: none, no image is affected (branch prefix ci/ starts no build)
  • Result: syntax check only (YAML and Python); the script was not run against the API

Checklist

  • Shell scripts pass bash -n and workflow files are valid YAML.
  • README.md and docs/ match the change.
  • Breaking changes are described in breaking_changes.md.
  • I reviewed and understand every change in this PR (see AI policy).

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@florian-asche
florian-asche merged commit 9a9f9c3 into main Nov 21, 2026
@florian-asche
florian-asche deleted the ci/imager-json-api-token branch November 21, 2026 06:14
@github-actions github-actions Bot added the ci label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant