mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
meta: store actions secrets in environment
PR-URL: https://github.com/nodejs/node/pull/53930 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
10
.github/workflows/auto-start-ci.yml
vendored
10
.github/workflows/auto-start-ci.yml
vendored
@@ -59,11 +59,15 @@ jobs:
|
||||
|
||||
- name: Setup @node-core/utils
|
||||
run: |
|
||||
ncu-config set username ${{ secrets.JENKINS_USER }}
|
||||
ncu-config set token "${{ secrets.GH_USER_TOKEN }}"
|
||||
ncu-config set jenkins_token ${{ secrets.JENKINS_TOKEN }}
|
||||
ncu-config set username "$USERNAME"
|
||||
ncu-config set token "$GH_TOKEN"
|
||||
ncu-config set jenkins_token "$JENKINS_TOKEN"
|
||||
ncu-config set owner "${{ github.repository_owner }}"
|
||||
ncu-config set repo "$(echo ${{ github.repository }} | cut -d/ -f2)"
|
||||
env:
|
||||
USERNAME: ${{ secrets.JENKINS_USER }}
|
||||
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
||||
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}
|
||||
|
||||
- name: Start the CI
|
||||
run: ./tools/actions/start-ci.sh ${{ needs.get-prs-for-ci.outputs.numbers }}
|
||||
|
||||
10
.github/workflows/commit-queue.yml
vendored
10
.github/workflows/commit-queue.yml
vendored
@@ -86,11 +86,15 @@ jobs:
|
||||
run: |
|
||||
ncu-config set branch ${GITHUB_REF_NAME}
|
||||
ncu-config set upstream origin
|
||||
ncu-config set username "${{ secrets.GH_USER_NAME }}"
|
||||
ncu-config set token "${{ secrets.GH_USER_TOKEN }}"
|
||||
ncu-config set jenkins_token "${{ secrets.JENKINS_TOKEN }}"
|
||||
ncu-config set username "$USERNAME"
|
||||
ncu-config set token "$GH_TOKEN"
|
||||
ncu-config set jenkins_token "$JENKINS_TOKEN"
|
||||
ncu-config set repo "${REPOSITORY}"
|
||||
ncu-config set owner "${OWNER}"
|
||||
env:
|
||||
USERNAME: ${{ secrets.JENKINS_USER }}
|
||||
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
||||
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}
|
||||
|
||||
- name: Start the Commit Queue
|
||||
run: ./tools/actions/commit-queue.sh ${{ env.OWNER }} ${{ env.REPOSITORY }} ${{ needs.get_mergeable_prs.outputs.numbers }}
|
||||
|
||||
Reference in New Issue
Block a user