ci(sinkra-review): PAT-checkout for PRIVATE action + harmonize provider to OpenAI gpt-4o-mini#45
ci(sinkra-review): PAT-checkout for PRIVATE action + harmonize provider to OpenAI gpt-4o-mini#45RBKunnela wants to merge 1 commit into
Conversation
…-4o-mini Two changes: 1. PAT-checkout for PRIVATE action consumption. paybot-sdk is PUBLIC; sinkra-action is PRIVATE. GitHub Actions cannot resolve `uses: RBKunnela/sinkra-action@SHA` from a public repo because the default GITHUB_TOKEN lacks read scope on the private action's repository. Workaround: checkout the private action into a local path via a fine-grained PAT, then invoke it as `uses: ./.sinkra-action`. 2. Harmonize provider config to OpenAI gpt-4o-mini. paybot-core and paybot-mcp were updated to use OPENAI_API_KEY + `zai-base-url: 'https://api.openai.com/v1'` + `model: 'gpt-4o-mini'` (operator-merged 19:14 UTC). paybot-sdk was on ZAI_API_KEY with no base-url/model overrides. This commit brings paybot-sdk into line with the other two repos so the verdict is computed identically across the ecosystem. Requires repo secret SINKRA_ACTION_PAT — see PR description for setup. Also requires Workflow permissions = Read and write — see PR description. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
Warning Review limit reached
Your plan currently allows 1 review/hour. Refill in 57 minutes and 52 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing as obsolete: the public FriendlyAI Review wrapper has been merged to main and branch protection now requires the semantic friendlyai/review check. |
Problem statement (two issues addressed)
Issue 1 — PAT-checkout required
paybot-sdkis PUBLIC.RBKunnela/sinkra-actionis PRIVATE. The currently-merged.github/workflows/sinkra-review.yml(#44) references the action via:GitHub Actions cannot resolve this from a public repo. The default
GITHUB_TOKENlacks read scope on the private action's repository, so the run aborts at job-setup with:Confirmed empirically on the paybot-core mirror PR run (same error mode).
Issue 2 — Provider drift
paybot-coreandpaybot-mcpwere updated 2026-05-23 19:14 UTC to use OpenAIgpt-4o-mini:paybot-sdk's workflow still references
ZAI_API_KEYwith no base-url/model overrides — it would run against the defaultglm-4.6provider while its siblings run against OpenAI. The Sinkra verdict on paybot-sdk would therefore not be comparable to verdicts on the other two repos.Solution
uses: ./.sinkra-action. SHA pin and version comment preserved for supply-chain hygiene.OPENAI_API_KEY+zai-base-url: 'https://api.openai.com/v1'+model: 'gpt-4o-mini'to match paybot-core / paybot-mcp.Diff: 1 file, +26/-4.
OPERATOR ACTION REQUIRED — TWO STEPS
This PR will not pass CI until BOTH operator actions below are complete.
Action 1 — Create SINKRA_ACTION_PAT secret
paybot-sdk-sinkra-action-read(or similar)RBKunnelaRBKunnela/sinkra-action(NOTE: If paybot-mcp PR #31 lands first, you can re-use the same PAT — fine-grained PATs may be scoped to the action's repo and used by any consuming repo. Set the same value as a secret on each consumer.)
Action 2 — Toggle Workflow permissions to Read and write
paybot-sdk has had Actions Workflow permissions set to
Read repository contents(read-only). This is insufficient for the Sinkra Review check-run write step.(This was flagged in earlier session investigation; paybot-core and paybot-mcp already have this enabled.)
Then — retrigger
Push an empty commit on this PR's head branch to retrigger the workflow:
Verification plan
After both operator actions + workflow retriggered:
Sinkra Review / sinkra-action verdictcheck-run to progress past the action-resolution step.automated-pr-merge-authority.md.Scope
.github/workflows/sinkra-review.ymlSINKRA chain compliance
Per
.claude/rules/automated-pr-merge-authority.md, this PR (opened by an automated session) requires:DO NOT MERGE until SINKRA_ACTION_PAT is set, Workflow permissions are set to Read and write, and a successful Sinkra Review run is recorded.
🤖 Generated with Claude Code