From 71462a9f93a6fd3b10007fb2ccb24f8844cadfd6 Mon Sep 17 00:00:00 2001 From: Michel Hollands Date: Fri, 31 May 2024 14:49:41 +0100 Subject: [PATCH] Use other token Signed-off-by: Michel Hollands --- .../workflows/check-for-dependency-updates.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/check-for-dependency-updates.yaml b/.github/workflows/check-for-dependency-updates.yaml index 70cd955..de90ee5 100644 --- a/.github/workflows/check-for-dependency-updates.yaml +++ b/.github/workflows/check-for-dependency-updates.yaml @@ -66,6 +66,12 @@ jobs: echo "changed=true" >> "${GITHUB_OUTPUT}" fi + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ env.APP_ID }} + private-key: ${{ env.PRIVATE_KEY }} + - name: Create pull request if: steps.update-loki.outputs.changed == 'true' || steps.update-grafana-alloy.outputs.changed == 'true' || steps.update-mimir-distributed.outputs.changed == 'true' || steps.update-tempo-distributed.outputs.changed == 'true' || steps.update-minio.outputs.changed == 'true' uses: peter-evans/create-pull-request@v5 @@ -80,6 +86,7 @@ jobs: branch: chore/update-dependencies delete-branch: true team-reviewers: "@grafana/loki-squad" + token: ${{ steps.app-token.outputs.token }} updateGrafana: name: Update the Grafana version @@ -99,6 +106,12 @@ jobs: echo "changed=true" >> "${GITHUB_OUTPUT}" fi + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ env.APP_ID }} + private-key: ${{ env.PRIVATE_KEY }} + - name: Create pull request if: steps.update-grafana.outputs.changed == 'true' uses: peter-evans/create-pull-request@v5 @@ -113,3 +126,4 @@ jobs: branch: chore/update-minio delete-branch: true team-reviewers: "@grafana/loki-squad" + token: ${{ steps.app-token.outputs.token }}