fix(openshift-developer): refresh GitHub tokens before push/reply - #648
fix(openshift-developer): refresh GitHub tokens before push/reply#648bryan-cox wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe review skill adds a pre-step that conditionally runs ChangesGitHub token refresh
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (2 errors)
✅ Passed checks (8 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Add a pre-step to address-review-pr that calls /tmp/refresh-github-tokens.sh (written by the CI process step) before posting replies or pushing. This ensures tokens are valid after long sessions that outlast the 1-hour GitHub App token lifetime. Companion to openshift/release#82494. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bc1f773 to
190d29c
Compare
|
|
||
| ### Step 4: Post Replies and Push | ||
|
|
||
| #### Pre-step: Refresh GitHub tokens |
There was a problem hiding this comment.
If we need to do this I'd rather just use a gh PAT. If still want to use the app, I'd rather let a script in the CI runner to refresh it in loop so claude can just pick whatever is in disk
Summary
address-review-prskill that refreshes GitHub App tokens before posting replies or pushing/tmp/refresh-github-tokens.shif it exists (written by the CI process step in openshift/release)Problem
GitHub App installation tokens expire after 1 hour. The PR #9102 review-agent session ran for 1h17m — the agent processed everettraven's review comment correctly but couldn't post a reply or push because the token had expired.
Companion PR
Test plan
/tmp/refresh-github-tokens.sh→ skipped gracefully)🤖 Generated with Claude Code
Summary by CodeRabbit