From 6e37985716d360e5d8eedb93c93c24e35fe75f8d Mon Sep 17 00:00:00 2001 From: pbio <10051819+paulbalaji@users.noreply.github.com> Date: Thu, 27 Nov 2025 16:06:06 +0000 Subject: [PATCH] fix: use Hyper Gonk identity for git commits in release workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/release.yml | 6 ++++++ .github/workflows/rust-release.yml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3f653626a9..5820470900b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,12 +62,18 @@ jobs: app-id: ${{ secrets.HYPER_GONK_APP_ID }} private-key: ${{ secrets.HYPER_GONK_PRIVATE_KEY }} + - name: Configure Git for Hyper Gonk + run: | + git config user.name "${{ steps.generate-token.outputs.app-slug }}[bot]" + git config user.email "${{ secrets.HYPER_GONK_APP_ID }}+${{ steps.generate-token.outputs.app-slug }}[bot]@users.noreply.github.com" + - name: Create Release PR id: changesets uses: changesets/action@v1 with: version: yarn version:prepare title: 'chore: release npm packages' + setupGitUser: false env: NPM_CONFIG_PROVENANCE: true GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index 01a5abed92a..5d012b01cca 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -183,8 +183,8 @@ jobs: BUMP_TYPE: ${{ steps.next_version.outputs.bump_type }} CHANGELOG: ${{ steps.changelog.outputs.changelog }} run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "${{ steps.generate-token.outputs.app-slug }}[bot]" + git config user.email "${{ secrets.HYPER_GONK_APP_ID }}+${{ steps.generate-token.outputs.app-slug }}[bot]@users.noreply.github.com" BRANCH_NAME="release-agents-v${NEW_VERSION}"