Skip to content

Commit c1b5844

Browse files
authored
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.
1 parent 3307f41 commit c1b5844

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
app_id: ${{env.APP_ID}}
9393
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
9494
repositories: >-
95-
[ ${{ github.repository }} ]
95+
[ "${{ github.repository }}" ]
9696
permissions: >-
9797
{"contents": "write"}
9898
- name: Set VERSION variable from tag
@@ -122,7 +122,7 @@ jobs:
122122
app_id: ${{env.APP_ID}}
123123
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
124124
repositories: >-
125-
[ ${{ github.repository }} ]
125+
[ "${{ github.repository }}" ]
126126
permissions: >-
127127
{"contents": "write", "pull_requests": "write"}
128128
- name: Checkout repository code
@@ -172,7 +172,7 @@ jobs:
172172
app_id: ${{env.APP_ID}}
173173
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
174174
repositories: >-
175-
[ ${{ github.repository }} ]
175+
[ "${{ github.repository }}" ]
176176
permissions: >-
177177
{"contents": "write", "pull_requests": "write"}
178178
- name: Checkout repository code

0 commit comments

Comments
 (0)