From 6f7df0a37a1f795c8ff09abc1a4cf01ba1d369fd Mon Sep 17 00:00:00 2001 From: lyc8503 Date: Sun, 30 Jun 2024 20:20:03 +0800 Subject: [PATCH] Fix permission problem when upgrading --- .github/workflows/sync.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index e5e6f30..4330985 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -11,6 +11,9 @@ on: type: boolean required: true default: false + override-token: + description: '[Optional] Replace the default token with the supplied PAT. Used to resolve `refusing to allow a GitHub App to create or update workflow... `' + required: false jobs: sync_latest_from_upstream: @@ -20,6 +23,8 @@ jobs: steps: - name: Checkout target repo uses: actions/checkout@v3 + with: + token: ${{ inputs.override-token || secrets.GITHUB_TOKEN }} - name: Current config run: |