From efa4e11b65599870022fa97c8c50ed97255f171b Mon Sep 17 00:00:00 2001 From: DarkWindman Date: Fri, 20 Mar 2026 17:09:45 +0200 Subject: [PATCH] sync-upstream: Use GITHUB_TOKEN for gh commands --- .github/workflows/sync.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 0bfc76df..48184d49 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -6,7 +6,6 @@ on: workflow_dispatch: permissions: - contents: write pull-requests: write jobs: @@ -33,7 +32,7 @@ jobs: - name: Fetch upstream & generate branch name & check for new commits id: check_commits env: - GH_TOKEN: ${{ secrets.SYNC_PAT }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh repo set-default ${{ github.repository }} # Set the default repo to the origin repository git remote add upstream ${{ env.UPSTREAM }} @@ -83,7 +82,7 @@ jobs: id: create_pr if: steps.check_commits.outputs.skip == 'false' env: - GH_TOKEN: ${{ secrets.SYNC_PAT }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | # Execute the generated PR creation script ./contrib/gh-pr-create.sh