From aa9a10e65d72e46dd4a62bbc5ec33586878e426b Mon Sep 17 00:00:00 2001 From: Charis <26616127+charislam@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:20:44 -0500 Subject: [PATCH] fix(docs): sync troubleshooting upstream workflow (#42463) GITHUB_TOKEN is no longer allowed to create PRs, so use the generated app token instead. ## Summary by CodeRabbit * **Chores** * Improved authentication for automated sync workflows by switching to an app-generated token, enhancing reliability of automated documentation/troubleshooting syncs. --- .github/workflows/docs-sync-auto-troubleshooting.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-sync-auto-troubleshooting.yml b/.github/workflows/docs-sync-auto-troubleshooting.yml index bb315d0607b..333f14f173f 100644 --- a/.github/workflows/docs-sync-auto-troubleshooting.yml +++ b/.github/workflows/docs-sync-auto-troubleshooting.yml @@ -59,9 +59,16 @@ jobs: repository: supabase/troubleshooting path: troubleshooting-upstream + - name: Generate PR token + id: pr-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.GH_AUTOFIX_APP_ID }} + private-key: ${{ secrets.GH_AUTOFIX_PRIVATE_KEY }} + - name: Sync supabase/troubleshooting changes back to supabase/supabase env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ steps.pr-token.outputs.token }} run: | git config user.name 'github-docs-bot' git config user.email 'github-docs-bot@supabase.com'