From 3df3dd175d48bcada28edeb0569d76b322a54ebe Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 8 Feb 2023 22:10:00 +0100 Subject: [PATCH] Switch to github app token for dependencies pull requests --- .github/workflows/update-dependencies.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-dependencies.yaml b/.github/workflows/update-dependencies.yaml index 27bb996..cbc6cd8 100644 --- a/.github/workflows/update-dependencies.yaml +++ b/.github/workflows/update-dependencies.yaml @@ -27,11 +27,17 @@ jobs: run: | pip install pip-tools invoke invoke update-dependencies --no-sync + - name: Generate token + uses: tibdex/github-app-token@v1 + id: generate-token + with: + app_id: ${{ secrets.PR_APP_ID }} + private_key: ${{ secrets.PR_APP_PRIVATE_KEY }} - name: Create Pull Request uses: peter-evans/create-pull-request@v4 id: create-pull-request with: - token: ${{ secrets.PERSONAL_TOKEN_PR }} + token: ${{ steps.generate-token.outputs.token }} commit-message: Update dependencies base: master branch: update-dependencies