From c6212ff8f475b48f86d32daebaca0e3a3329b49a Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 6 May 2024 18:06:56 +0900 Subject: [PATCH] ci: use CI_JOB_TOKEN --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01063289d5..1e10e9c8b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,9 +43,9 @@ auto_update: script: # setup git - apk add git - - git config user.name "${GITLAB_USER_NAME}" - - git config user.email "${GITLAB_USER_EMAIL}" - - git remote set-url origin "${CI_MERGE_REQUEST_SOURCE_PROJECT_URL}" + - git config user.name 'GitLab CI' + - git config user.email 'noreply@firefish.dev' + - git remote set-url origin "https://gitlab-ci-token:${CI_JOB_TOKEN}@firefish.dev/${CI_MERGE_REQUEST_PROJECT_PATH}" - git fetch origin - git switch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" # update pnpm lockfile