Skip to content

Commit

Permalink
Fix usage of tibdex/github-app-token in Release workflow (#2502)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
saquibmian authored Oct 16, 2023
1 parent 3307f41 commit c1b5844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c1b5844

Please sign in to comment.