From fa8150697d05fe3b97891e2d43558d347cbe1cf2 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Thu, 18 Nov 2021 11:36:57 -0800 Subject: [PATCH] update authentication for automerge script (#22977) --- .github/workflows/enterprise-dates.yml | 1 + .github/workflows/repo-sync.yml | 1 + .github/workflows/update-graphql-files.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/enterprise-dates.yml b/.github/workflows/enterprise-dates.yml index 6c14bb6373..01a233bc02 100644 --- a/.github/workflows/enterprise-dates.yml +++ b/.github/workflows/enterprise-dates.yml @@ -71,6 +71,7 @@ jobs: - name: Enable GitHub auto-merge if: ${{ steps.create-pull-request.outputs.pull-request-number }} env: + GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }} AUTOMERGE_PR_NUMBER: ${{ steps.create-pull-request.outputs.pull-request-number }} run: node .github/actions-scripts/enable-automerge.js diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 51b199f740..32f009c63d 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -217,6 +217,7 @@ jobs: - name: Enable GitHub auto-merge if: ${{ steps.find-pull-request.outputs.number }} env: + GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }} AUTOMERGE_PR_NUMBER: ${{ steps.find-pull-request.outputs.number }} run: node .github/actions-scripts/enable-automerge.js diff --git a/.github/workflows/update-graphql-files.yml b/.github/workflows/update-graphql-files.yml index 6e938767d7..d4ae85d530 100644 --- a/.github/workflows/update-graphql-files.yml +++ b/.github/workflows/update-graphql-files.yml @@ -64,6 +64,7 @@ jobs: - name: Enable GitHub auto-merge if: ${{ steps.create-pull-request.outputs.pull-request-number }} env: + GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }} AUTOMERGE_PR_NUMBER: ${{ steps.create-pull-request.outputs.pull-request-number }} run: node .github/actions-scripts/enable-automerge.js