Skip to content

Commit

Permalink
EVEREST-107 use ROBOT_TOKEN instead of GITHUB_TOKEN
Browse files Browse the repository at this point in the history
When you use the repository's GITHUB_TOKEN to perform tasks, events
triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch
and repository_dispatch, will not create a new workflow run. This
prevents you from accidentally creating recursive workflow runs. For
example, if a workflow run pushes code using the repository's
GITHUB_TOKEN, a new workflow will not run even when the repository
contains a workflow configured to run when push events occur.
Source: https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow

This means that the updates to the PRs wouldn't trigger the other
workflows that usually run in the PRs thus merging them was blocked
because the checks didn't pass. Changing the token to the ROBOT_TOKEN
removes this limitation.
  • Loading branch information
recharte committed Jan 22, 2025
1 parent 2feca76 commit 9679682
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-update-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
steps:
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.ROBOT_TOKEN }}
script: |
try {
const { data: pulls } = await github.rest.pulls.list({
Expand Down

0 comments on commit 9679682

Please sign in to comment.