Skip to content

ci(risc0): pass GITHUB_TOKEN as secret env to fix rzup rate limits#350

Merged
han0110 merged 2 commits into
eth-act:masterfrom
Andrurachi:ci-rate-limit-41
May 7, 2026
Merged

ci(risc0): pass GITHUB_TOKEN as secret env to fix rzup rate limits#350
han0110 merged 2 commits into
eth-act:masterfrom
Andrurachi:ci-rate-limit-41

Conversation

@Andrurachi
Copy link
Copy Markdown
Contributor

@Andrurachi Andrurachi commented May 3, 2026

Fixes #41

Injects GITHUB_TOKEN into the Risc0 Docker build via BuildKit secret mount (env=GITHUB_TOKEN). This prevents the rzup installer from hitting GitHub API rate limits in CI.

@han0110 han0110 self-requested a review May 4, 2026 15:52
@Andrurachi
Copy link
Copy Markdown
Contributor Author

Hey @han0110 ,

It looks like the token fix successfully bypassed the rate limit, but it caused ziskup to fetch the latest unpinned version of ZisK (v0.16.1).

It looks like v0.16.1 broke the Docker builds for two reasons:

  • ziskup now triggers an interactive prompt asking to select CPU vs GPU, which crashes the CI runner (/dev/tty: No such device or address).
  • The binary structure seems to have changed, breaking the mv cargo-zisk-gpu command in the install script.

I see you just opened #351 to update ZisK to v0.17.0 (which I assume handles these changes). Once your PR is merged, I can rebase this branch on top of it. Let me know if you'd prefer me to handle this differently in the meantime :)

Copy link
Copy Markdown
Collaborator

@han0110 han0110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the last 3 months workflow github rate limiting failures, all come from rzup installation, which only requires pass GITHUB_TOKEN to risc0's installation script:

RUN --mount=type=secret,id=github_token,env=GITHUB_TOKEN \
    /tmp/install_risc0_sdk.sh && rm /tmp/install_risc0_sdk.sh

The rest changes seem not necessary and overkill given the complexity.

@Andrurachi Andrurachi changed the title ci: prevent github api rate limits using docker buildkit secrets ci(risc0): pass GITHUB_TOKEN as secret env to fix rzup rate limits May 6, 2026
Copy link
Copy Markdown
Collaborator

@han0110 han0110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@han0110 han0110 merged commit 5c8ddb3 into eth-act:master May 7, 2026
28 checks passed
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.

CI: jobs usually hit rate limiting

2 participants