diff --git a/.github/workflows/go-autoupdate.yaml b/.github/workflows/go-autoupdate.yaml index 17f9e10..b7ddda3 100644 --- a/.github/workflows/go-autoupdate.yaml +++ b/.github/workflows/go-autoupdate.yaml @@ -67,7 +67,7 @@ jobs: if: steps.changes.outputs.changes_detected == 'true' uses: peter-evans/create-pull-request@v8 with: - token: ${{ secrets.HOMEBREW_TAP_TOKEN }} + token: ${{ secrets.HOMEBREW_TAP_TOKEN || github.token }} commit-message: "Update go.mod and go.sum" title: "Update Go dependencies" body: | @@ -82,4 +82,4 @@ jobs: if: steps.create-pr.outputs.pull-request-number run: gh pr merge --squash --delete-branch --admin "${{ steps.create-pr.outputs.pull-request-number }}" env: - GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} + GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN || github.token }}