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: