Skip to content

fix: use hyper-gonk bot for release PRs#7472

Merged
paulbalaji merged 1 commit intomainfrom
pbio/hyper-gonk-ci-permissions
Nov 26, 2025
Merged

fix: use hyper-gonk bot for release PRs#7472
paulbalaji merged 1 commit intomainfrom
pbio/hyper-gonk-ci-permissions

Conversation

@paulbalaji
Copy link
Collaborator

@paulbalaji paulbalaji commented Nov 26, 2025

Summary

Use GitHub App token (Hyper Gonk) instead of GITHUB_TOKEN for creating release PRs. This fixes the issue where CI workflows wouldn't trigger on PRs created by the release workflows.

Problem

GitHub's security model prevents workflows triggered by GITHUB_TOKEN from triggering other workflows. This means:

  • When the NPM release workflow creates a "Version Packages" PR, CI doesn't run
  • When the Rust release workflow creates a release PR, CI doesn't run

Solution

Use a GitHub App token instead. The Hyper Gonk GitHub App has been configured with:

  • Contents: Read & Write
  • Pull requests: Read & Write

Changes

  • .github/workflows/release.yml: Use Hyper Gonk token for changesets action
  • .github/workflows/rust-release.yml: Use Hyper Gonk token for PR creation

Setup Required

The following secrets need to be added to the repository:

  • HYPER_GONK_APP_ID: The App ID
  • HYPER_GONK_PRIVATE_KEY: The private key

Test plan

  • Verified CI triggers on release PRs (tested with Rust release workflow)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Improved release process authentication and token management to ensure secure and reliable package deployment workflows.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

⚠️ No Changeset found

Latest commit: 7fb8a0d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@paulbalaji paulbalaji changed the title fix: use Hyper Gonk GitHub App for release PRs fix: use Gonk for release PRs Nov 26, 2025
@paulbalaji paulbalaji changed the title fix: use Gonk for release PRs fix: use hyper-gonk bot for release PRs Nov 26, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 26, 2025

Warning

Rate limit exceeded

@paulbalaji has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 48 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 90b74d3846aba0b3f503a90c326e217e3a7a2a13 and 7fb8a0d.

📒 Files selected for processing (2)
  • .github/workflows/release.yml (1 hunks)
  • .github/workflows/rust-release.yml (1 hunks)
📝 Walkthrough

Walkthrough

The release workflows are getting a security upgrade, mate. Both the npm and Rust release workflows now generate a GitHub App token instead of relying on the default repository token for creating release PRs. The npm workflow also gets a proper title on the changesets action run.

Changes

Cohort / File(s) Summary
GitHub App Token Authentication in Release Workflows
​.github/workflows/release.yml, ​.github/workflows/rust-release.yml
Added a new step to generate a GitHub App token using actions/create-github-app-token@v1 and wired it into the release PR creation steps, replacing repository token authentication. The npm workflow also adds a title to the changesets action run.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify that the GitHub App token generation step is configured correctly with proper permissions
  • Confirm the token output is correctly passed to subsequent steps in both workflows
  • Check that the changesets action title update in release.yml doesn't affect any downstream processes

Possibly related PRs

Suggested reviewers

  • Mo-Hussain
  • kamiyaa
  • xeno097

Poem

🔐 Your workflows, they needed some care,
GitHub App tokens, now flowing through air,
No more secrets left gathering dust,
Authentication proper—the kind you can trust!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: switching to use a GitHub App token (Hyper Gonk) for release PR creation instead of GITHUB_TOKEN.
Description check ✅ Passed The description covers the main objective, problem statement, and solution. All required template sections are addressed with substantive content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@paulbalaji paulbalaji added this pull request to the merge queue Nov 26, 2025
@paulbalaji paulbalaji removed this pull request from the merge queue due to a manual request Nov 26, 2025
Use GitHub App token instead of GITHUB_TOKEN for creating release PRs.
This fixes the issue where CI workflows wouldn't trigger on PRs created
by the release workflows (GitHub's security restriction on GITHUB_TOKEN).

The Hyper Gonk GitHub App has been configured with:
- Contents: Read & Write
- Pull requests: Read & Write

Secrets required:
- HYPER_GONK_APP_ID
- HYPER_GONK_PRIVATE_KEY

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@paulbalaji paulbalaji force-pushed the pbio/hyper-gonk-ci-permissions branch from 90b74d3 to 7fb8a0d Compare November 26, 2025 15:51
@paulbalaji paulbalaji enabled auto-merge November 26, 2025 16:07
@paulbalaji paulbalaji added this pull request to the merge queue Nov 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 26, 2025
@paulbalaji paulbalaji added this pull request to the merge queue Nov 26, 2025
Merged via the queue into main with commit 494e334 Nov 26, 2025
151 of 153 checks passed
@paulbalaji paulbalaji deleted the pbio/hyper-gonk-ci-permissions branch November 26, 2025 16:38
@github-project-automation github-project-automation bot moved this from In Review to Done in Hyperlane Tasks Nov 26, 2025
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (c4f3d33) to head (7fb8a0d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #7472   +/-   ##
============================
============================
Components Coverage Δ
core ∅ <ø> (∅)
hooks ∅ <ø> (∅)
isms ∅ <ø> (∅)
token ∅ <ø> (∅)
middlewares ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

paulbalaji added a commit that referenced this pull request Nov 27, 2025
The previous fix (PR #7472) used Hyper Gonk token for authentication
but still used github-actions[bot] for git commit identity. This caused
force pushes to the release branch to still show as github-actions bot.

Changes:
- rust-release.yml: Use app-slug output for git config
- release.yml: Add setupGitUser: false to changesets action and
  configure git identity manually before the action runs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants