Repository navigation
ask whether patch-it is readable with the workflow token - #110
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
|
Claude finished @brandonphelps1212's task in 1m 13s —— View job ✅ Ready to merge: a small, well-reasoned CI-only fix. The probe no longer hits the anonymous rate limit, and an unexpected answer now fails the check, with the code in the log, instead of passing. Rules
BugsNone found. I traced each path the probe can take:
Verified
Non-blocking
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this changes
A fix to
CI_contractonly; no plugin changes.The problem. The contract check first asks the GitHub API whether
patch-it-dev/patch-itis readable, and skips with a notice on404(patch-it is private). It asked anonymously, and anonymous API requests are limited to 60 an hour per IP, shared by everyone's jobs on a runner. On #109 the probe got something other than404. It was most likely a403from that limit, but the code wasn't logged. The workflow read that as "readable", tried to clone the private repo, and failed:Nothing in #109 touched
contract/. The same check had skipped on every earlier PR.The fix.
github.token. That token can't read patch-it either (a private repo still answers404), but it isn't subject to the anonymous limit. The clone itself stays anonymous, as before.404, clones on200, and fails with the code on anything else. A check that didn't run should never show green.Checklist
docs/plugins.md: not applicable, no plugin changed.git commit -s, DCO)CI_contractrun exercises the new probe (expect the404notice).scripts/leak_guard.py --allpasses.Notes for the reviewer
patch-it-dev/patch-it, such as an org secret. That's a separate decision.main.🤖 Generated with Claude Code