From c9a623c36265da7a0576ec17a3bddfde99316e60 Mon Sep 17 00:00:00 2001 From: DarkWindman Date: Thu, 19 Mar 2026 14:31:26 +0200 Subject: [PATCH] sync-upstream: Pass token via checkout for git push operations --- .github/workflows/sync.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 04d60172..0bfc76df 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -23,6 +23,7 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 + token: ${{ secrets.SYNC_PAT }} - name: Configure Git run: | @@ -65,8 +66,6 @@ jobs: - name: Generate PR metadata id: branch_pr_metadata if: steps.check_commits.outputs.skip == 'false' - env: - GH_TOKEN: ${{ secrets.SYNC_PAT }} run: | # Call the sync script to generate PR title and body ./contrib/sync-upstream.sh -b ${{ env.ORIGIN_BRANCH }} "$SYNC_BRANCH" @@ -74,8 +73,6 @@ jobs: - name: Push a sync branch id: push_branch if: steps.check_commits.outputs.skip == 'false' - env: - GH_TOKEN: ${{ secrets.SYNC_PAT }} run: | echo "Creating sync branch: $SYNC_BRANCH" git checkout upstream/${{ env.UPSTREAM_BRANCH }}