From 0fd8aae1c588f72a110bdd802ee3722d7398aada Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Wed, 16 Nov 2022 17:54:41 +0100 Subject: [PATCH] ci: Run auto-merge as update bot Recently this workflow started failing with 'Resource not accessible by integration' when using the default GitHub Actions access token. Ref. ridedott/merge-me-action#1581 --- .github/workflows/update-merge.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-merge.yml b/.github/workflows/update-merge.yml index 77754599c5..0f4818a460 100644 --- a/.github/workflows/update-merge.yml +++ b/.github/workflows/update-merge.yml @@ -18,11 +18,18 @@ jobs: runs-on: ubuntu-latest steps: + - name: Impersonate update bot + uses: tibdex/github-app-token@v1 + id: generate-token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Approve and merge uses: ridedott/merge-me-action@v2 with: GITHUB_LOGIN: docker-elk-updater - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} - name: Delete branch uses: actions/github-script@v6