From 4289cfb329fa96e9ae999ad701820233a598da43 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 17 Aug 2026 02:25:02 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20fix:=20Repair=20Locize=20PR=20Au?= =?UTF-8?q?thentication=20(#14918)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/locize-i18n-sync.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/locize-i18n-sync.yml b/.github/workflows/locize-i18n-sync.yml index 5fb3fcdc7e..bb0ced7345 100644 --- a/.github/workflows/locize-i18n-sync.yml +++ b/.github/workflows/locize-i18n-sync.yml @@ -56,7 +56,8 @@ jobs: runs-on: ubuntu-latest needs: sync-translations permissions: - contents: read + contents: write + pull-requests: write steps: # 1. Check out the repository. - name: Checkout Repository @@ -89,13 +90,20 @@ jobs: --base-dir "$RUNNER_TEMP/locize-locale-baseline" \ --current-dir client/src/locales - # 3. Create a Pull Request using a dedicated fine-grained PAT so this - # workflow does not depend on the global GITHUB_TOKEN PR-creation setting. + - name: Upload Validated Translations + uses: actions/upload-artifact@v4 + with: + name: locize-locales-${{ github.run_id }} + path: client/src/locales + if-no-files-found: error + retention-days: 1 + + # 3. Create a Pull Request using this workflow's scoped token. - name: Create Pull Request id: create-pull-request uses: peter-evans/create-pull-request@v8 with: - token: ${{ secrets.LOCIZE_PR_TOKEN }} + token: ${{ github.token }} add-paths: | client/src/locales/** commit-message: "🌍 i18n: Update translation.json with latest translations" @@ -112,7 +120,7 @@ jobs: - name: Request Reviewer if: ${{ steps.create-pull-request.outputs.pull-request-number != '' }} env: - GH_TOKEN: ${{ secrets.LOCIZE_PR_TOKEN }} + GH_TOKEN: ${{ github.token }} PR_NUMBER: ${{ steps.create-pull-request.outputs.pull-request-number }} REVIEWER: danny-avila run: |