From 26377a749189b1446bbc230b65e1094070f4b385 Mon Sep 17 00:00:00 2001 From: r7kamura Date: Tue, 19 Nov 2024 09:20:40 +0900 Subject: [PATCH] Fix bug that default access token is used on `git push` --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 01a27f5..ecd7dc9 100644 --- a/action.yml +++ b/action.yml @@ -46,6 +46,7 @@ runs: - uses: actions/checkout@v4 with: ref: "${{ github.event.pull_request.base.ref }}" # We want to always get the default branch ref. + token: ${{ inputs.github_token || github.token }} - name: Create pull request run: | if [ "${{ github.event_name }}" == "pull_request" ] && [ "${{ github.event.action }}" == "closed" ]; then