From 3a18afd5ffe284e919fee74db9e694bc23f93665 Mon Sep 17 00:00:00 2001 From: DarkWindman Date: Tue, 17 Mar 2026 13:46:40 +0200 Subject: [PATCH] sync-upstream: Allow PAT for sync workflow --- .github/workflows/sync.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index ea16d068..04d60172 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -32,7 +32,7 @@ jobs: - name: Fetch upstream & generate branch name & check for new commits id: check_commits env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.SYNC_PAT }} run: | gh repo set-default ${{ github.repository }} # Set the default repo to the origin repository git remote add upstream ${{ env.UPSTREAM }} @@ -66,7 +66,7 @@ jobs: id: branch_pr_metadata if: steps.check_commits.outputs.skip == 'false' env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + 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" @@ -75,7 +75,7 @@ jobs: id: push_branch if: steps.check_commits.outputs.skip == 'false' env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.SYNC_PAT }} run: | echo "Creating sync branch: $SYNC_BRANCH" git checkout upstream/${{ env.UPSTREAM_BRANCH }} @@ -86,7 +86,7 @@ jobs: id: create_pr if: steps.check_commits.outputs.skip == 'false' env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.SYNC_PAT }} run: | # Execute the generated PR creation script ./contrib/gh-pr-create.sh