fix(ci): pass GitHub App token to checkout for workflow triggering#1264
fix(ci): pass GitHub App token to checkout for workflow triggering#1264paulbalaji merged 1 commit intomainfrom
Conversation
Move token generation before checkout and pass the token to actions/checkout. This ensures git credentials are configured with the GitHub App token, allowing subsequent pushes to trigger CI workflows. Previously, checkout used the default GITHUB_TOKEN which cannot trigger other workflows (GitHub security feature). GitHub App tokens can trigger workflows, but only if used for git authentication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
📝 WalkthroughWalkthroughThe release workflow's GitHub App token generation gets consolidated into a single pre-checkout step, eliminating duplicate token creation previously scattered throughout the workflow. The generated token output now flows downstream to the Checkout step and subsequent operations. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
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 |
…1264) Co-authored-by: Claude <noreply@anthropic.com>
…1264) Co-authored-by: Claude <noreply@anthropic.com>
Summary
actions/checkoutProblem
When the release workflow pushes commits (e.g., "Version Packages"), CI doesn't run on those commits. This is because:
actions/checkoutconfigures git credentials at checkout timeGITHUB_TOKENwhich cannot trigger other workflows (GitHub security feature)Solution
Generate the token before checkout and pass it via the
tokenparameter:Note:
combine.ymlandupdate-hyperlane-deps.ymlalready do this correctly.Test Plan
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.