This repository was archived by the owner on Oct 14, 2026. It is now read-only.
Repository navigation
OneDev checks: cache the mise tools (GitHub API rate limit) - #26
Merged
Merged
Conversation
mise downloads every tool from GitHub releases on each run; anonymous API calls are limited to 60/hour per IP and the checks job hit that limit. Cache MISE_DATA_DIR with SetupCacheStep, keyed on the .mise.toml checksum: tools are downloaded only when a version changes. Checkout moves to src/ so gitleaks does not scan the cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
OneDev build #4 (
checksonmain) failed: mise downloads every tool from GitHub releases on each run, and anonymous GitHub API calls are limited to 60/hour per IP (about 15 calls per run: release lookup + attestation check per tool).SetupCacheStepmise-tools, keyed on the checksum of.mise.toml, cachesMISE_DATA_DIR. Tools are downloaded only when a version changes.src/, the cache lives inmise/next to it, sogitleaks dir .does not scan cached binaries.tod build check-spec: valid, unchanged.Not yet tested on OneDev
Test runs #6 and #7 still hit the limit (it had not reset yet, my earlier test runs used it up), so the cache could not fill. After the reset: first run fills the cache, second run must show no GitHub calls.
🤖 Generated with Claude Code