From 86f15cb25089c8d7c32436fd455caa205b086c27 Mon Sep 17 00:00:00 2001 From: Robert Sese <734194+rsese@users.noreply.github.com> Date: Tue, 21 Jun 2022 15:36:50 -0500 Subject: [PATCH] Use PAT so other workflows trigger in GraphQL update workflow (#28674) Use PAT so other workflows trigger --- .github/workflows/update-graphql-files.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-graphql-files.yml b/.github/workflows/update-graphql-files.yml index 0383ff3598..fafc3f3118 100644 --- a/.github/workflows/update-graphql-files.yml +++ b/.github/workflows/update-graphql-files.yml @@ -53,8 +53,11 @@ jobs: # Disable pre-commit hooks; they don't play nicely here HUSKY: '0' with: - # need to use a token with repo and workflow scopes for this step - token: ${{ secrets.GITHUB_TOKEN }} + # Need to use a token with repo and workflow scopes for this step. + # Token should be a PAT because actions performed with GITHUB_TOKEN + # don't trigger other workflows and this action force pushes updates + # from the default branch. + token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }} commit-message: 'Action ran graphql script"update-files"' title: GraphQL schema update body: