25
25
get_mergeable_prs :
26
26
permissions :
27
27
pull-requests : read
28
- if : github.repository == 'nodejs/node'
28
+ if : github.repository == 'nodejs/node-auto-test '
29
29
runs-on : ubuntu-latest
30
30
outputs :
31
31
numbers : ${{ steps.get_mergeable_prs.outputs.numbers }}
@@ -55,20 +55,19 @@ jobs:
55
55
env :
56
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
57
commitQueue :
58
+ permissions :
59
+ pull-requests : write
58
60
needs : get_mergeable_prs
59
61
if : needs.get_mergeable_prs.outputs.numbers != ''
60
62
runs-on : ubuntu-latest
61
63
steps :
62
64
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63
65
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
67
66
# A personal token is required because pushing with GITHUB_TOKEN will
68
67
# prevent commits from running CI after they land. It needs
69
68
# to be set here because `checkout` configures GitHub authentication
70
69
# for push as well.
71
- token : ${{ secrets.GH_USER_TOKEN }}
70
+ token : ${{ secrets.GITHUB_TOKEN }}
72
71
73
72
# Install dependencies
74
73
- name : Install Node.js
@@ -94,10 +93,10 @@ jobs:
94
93
ncu-config set owner "${OWNER}"
95
94
env :
96
95
USERNAME : ${{ secrets.JENKINS_USER }}
97
- GH_TOKEN : ${{ secrets.GH_USER_TOKEN }}
96
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98
97
JENKINS_TOKEN : ${{ secrets.JENKINS_TOKEN }}
99
98
100
99
- name : Start the Commit Queue
101
100
run : ./tools/actions/commit-queue.sh ${{ env.OWNER }} ${{ env.REPOSITORY }} ${{ needs.get_mergeable_prs.outputs.numbers }}
102
101
env :
103
- GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
102
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments