Skip to content

Commit 5fcc8c7

Browse files
Update release workflow to use GitHub App Token for checkout (#370)
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 74a1128 commit 5fcc8c7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,19 @@ jobs:
5555
echo "target_branch=${TARGET}" >> $GITHUB_OUTPUT
5656
echo "Target branch: $TARGET"
5757
58+
- name: Generate GitHub App Token
59+
id: generate_token
60+
uses: actions/create-github-app-token@v1
61+
with:
62+
app-id: ${{ secrets.APP_ID }}
63+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
64+
5865
- name: Checkout repository
5966
uses: actions/checkout@v3
6067
with:
6168
ref: ${{ steps.target_branch.outputs.target_branch }}
6269
fetch-depth: 0
63-
token: ${{ secrets.GITHUB_TOKEN }}
70+
token: ${{ steps.generate_token.outputs.token }}
6471

6572
- name: Delete user-created tag
6673
run: |

0 commit comments

Comments
 (0)