2525 get_mergeable_prs :
2626 permissions :
2727 pull-requests : read
28- if : github.repository == 'nodejs/node'
28+ if : github.repository == 'nodejs/node-auto-test '
2929 runs-on : ubuntu-latest
3030 outputs :
3131 numbers : ${{ steps.get_mergeable_prs.outputs.numbers }}
@@ -55,20 +55,19 @@ jobs:
5555 env :
5656 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5757 commitQueue :
58+ permissions :
59+ pull-requests : write
5860 needs : get_mergeable_prs
5961 if : needs.get_mergeable_prs.outputs.numbers != ''
6062 runs-on : ubuntu-latest
6163 steps :
6264 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6365 with :
64- # Needs the whole git history for ncu to work
65- # See https://github.com/nodejs/node-core-utils/pull/486
66- fetch-depth : 0
6766 # A personal token is required because pushing with GITHUB_TOKEN will
6867 # prevent commits from running CI after they land. It needs
6968 # to be set here because `checkout` configures GitHub authentication
7069 # for push as well.
71- token : ${{ secrets.GH_USER_TOKEN }}
70+ token : ${{ secrets.GITHUB_TOKEN }}
7271
7372 # Install dependencies
7473 - name : Install Node.js
@@ -94,10 +93,10 @@ jobs:
9493 ncu-config set owner "${OWNER}"
9594 env :
9695 USERNAME : ${{ secrets.JENKINS_USER }}
97- GH_TOKEN : ${{ secrets.GH_USER_TOKEN }}
96+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9897 JENKINS_TOKEN : ${{ secrets.JENKINS_TOKEN }}
9998
10099 - name : Start the Commit Queue
101100 run : ./tools/actions/commit-queue.sh ${{ env.OWNER }} ${{ env.REPOSITORY }} ${{ needs.get_mergeable_prs.outputs.numbers }}
102101 env :
103- GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
102+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments