From 2b412ada041c1cbd14ce3b4cd264e95c928153a2 Mon Sep 17 00:00:00 2001 From: Oliver Sun <73540835+oliversun9@users.noreply.github.com> Date: Fri, 10 Nov 2023 14:55:10 -0500 Subject: [PATCH] Add token to checkout action (#176) This fixes permission for `git push` by providing a token in checkout action --- .github/workflows/create-release-pr.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create-release-pr.yaml b/.github/workflows/create-release-pr.yaml index f975383..dbb8bea 100644 --- a/.github/workflows/create-release-pr.yaml +++ b/.github/workflows/create-release-pr.yaml @@ -30,6 +30,8 @@ jobs: private-key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} - name: Checkout repository code uses: actions/checkout@v3 + with: + token: ${{ steps.app_token.outputs.token }} - uses: actions/setup-go@v3 with: go-version: '^1.19.x'