5858 commitQueue :
5959 needs : get_candidate_prs
6060 if : needs.get_candidate_prs.outputs.candidates != ''
61- permissions :
62- pull-requests : read
6361 runs-on : ubuntu-slim
6462 steps :
6563 # Install dependencies
@@ -80,13 +78,13 @@ jobs:
8078 ncu-config --global set branch "${GITHUB_REF_NAME}"
8179 ncu-config --global set upstream origin
8280 ncu-config --global set username "$USERNAME"
83- ncu-config --global set token "$GH_TOKEN "
81+ ncu-config --global set token "$GITHUB_TOKEN "
8482 ncu-config --global set jenkins_token "$JENKINS_TOKEN"
8583 ncu-config --global set repo "${REPOSITORY}"
8684 ncu-config --global set owner "${GITHUB_REPOSITORY_OWNER}"
8785 env :
8886 USERNAME : ${{ secrets.JENKINS_USER }}
89- GH_TOKEN : ${{ github.token }}
87+ GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
9088 JENKINS_TOKEN : ${{ secrets.JENKINS_TOKEN }}
9189
9290 - name : Filter Pull Requests
@@ -156,7 +154,7 @@ jobs:
156154 echo "numbers=$numbers" >> "$GITHUB_OUTPUT"
157155 env :
158156 CANDIDATES : ${{ needs.get_candidate_prs.outputs.candidates }}
159- GH_TOKEN : ${{ github.token }}
157+ GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
160158
161159 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
162160 if : steps.get_mergeable_prs.outputs.numbers != ''
@@ -169,8 +167,6 @@ jobs:
169167
170168 - name : Start the Commit Queue
171169 if : steps.get_mergeable_prs.outputs.numbers != ''
172- run : |
173- ncu-config set token "$GH_TOKEN"
174- ./tools/actions/commit-queue.sh "${GITHUB_REPOSITORY_OWNER}" "${REPOSITORY}" ${{ steps.get_mergeable_prs.outputs.numbers }}
170+ run : ./tools/actions/commit-queue.sh "${GITHUB_REPOSITORY_OWNER}" "${REPOSITORY}" ${{ steps.get_mergeable_prs.outputs.numbers }}
175171 env :
176- GH_TOKEN : ${{ secrets.GH_USER_TOKEN }}
172+ GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
0 commit comments