From c1b5844462e5b11923a962b19acd2d56bb5776fe Mon Sep 17 00:00:00 2001 From: Saquib Mian Date: Mon, 16 Oct 2023 17:54:45 -0400 Subject: [PATCH] Fix usage of `tibdex/github-app-token` in Release workflow (#2502) The argument needs to be JSON, so the string element in the array needs to be wrapped in `"`. See the [Github docs](https://docs.github.com/en/actions/learn-github-actions/variables), but doing `"${{ github.repository }}"` is valid. --- .github/workflows/release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 100a766dce..d95dafc1a9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -92,7 +92,7 @@ jobs: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} repositories: >- - [ ${{ github.repository }} ] + [ "${{ github.repository }}" ] permissions: >- {"contents": "write"} - name: Set VERSION variable from tag @@ -122,7 +122,7 @@ jobs: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} repositories: >- - [ ${{ github.repository }} ] + [ "${{ github.repository }}" ] permissions: >- {"contents": "write", "pull_requests": "write"} - name: Checkout repository code @@ -172,7 +172,7 @@ jobs: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} repositories: >- - [ ${{ github.repository }} ] + [ "${{ github.repository }}" ] permissions: >- {"contents": "write", "pull_requests": "write"} - name: Checkout repository code