From 4334bd8df9648250c29842aa9ac270c340d84e58 Mon Sep 17 00:00:00 2001 From: Duc Nguyen Date: Wed, 17 Jun 2026 16:44:31 +0700 Subject: [PATCH 1/2] fix(code-review): use client-id for app token --- .github/workflows/code-review.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 46ff277..e31f13b 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -10,7 +10,7 @@ name: Code Review (OpenCodeReview) # OCR_LLM_URL, OCR_LLM_AUTH_TOKEN # Optional: # OCR_LLM_MODEL (default glm-5.2), OCR_LLM_USE_ANTHROPIC (default true) -# GH_APP_ID + GH_APP_MUNMIU_PRIVATE_KEY -> post comments as munmiu[bot] +# GH_APP_CLIENT_ID (or legacy GH_APP_ID) + GH_APP_MUNMIU_PRIVATE_KEY -> post comments as munmiu[bot] # (falls back to github-actions[bot] when absent) on: @@ -28,6 +28,8 @@ on: # github-actions[bot]. If absent/empty, falls back to GITHUB_TOKEN. GH_APP_ID: required: false + GH_APP_CLIENT_ID: + required: false GH_APP_MUNMIU_PRIVATE_KEY: required: false @@ -131,7 +133,7 @@ jobs: continue-on-error: true # absent app secrets / not installed → fall back to GITHUB_TOKEN uses: actions/create-github-app-token@v3 with: - app-id: ${{ secrets.GH_APP_ID }} + client-id: ${{ secrets.GH_APP_CLIENT_ID || secrets.GH_APP_ID }} private-key: ${{ secrets.GH_APP_MUNMIU_PRIVATE_KEY }} - name: Post review comments to PR From f84a02f11d6641e1f34d6c706a858fead2c87f7e Mon Sep 17 00:00:00 2001 From: Duc Nguyen Date: Wed, 17 Jun 2026 16:44:31 +0700 Subject: [PATCH 2/2] fix(code-review): use client-id for app token --- .github/workflows/code-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index e31f13b..22a8377 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -131,7 +131,7 @@ jobs: - name: Get munmiu app token id: app-token continue-on-error: true # absent app secrets / not installed → fall back to GITHUB_TOKEN - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3 with: client-id: ${{ secrets.GH_APP_CLIENT_ID || secrets.GH_APP_ID }} private-key: ${{ secrets.GH_APP_MUNMIU_PRIVATE_KEY }}