From 9148c125168c1899b64f69d0c0e54f52cef35488 Mon Sep 17 00:00:00 2001 From: Sergio Date: Thu, 19 Dec 2024 10:30:08 +0100 Subject: [PATCH] Centralize Gitlab credentials in Vault --- ci/run-http.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/run-http.sh b/ci/run-http.sh index 00591031..901f1376 100755 --- a/ci/run-http.sh +++ b/ci/run-http.sh @@ -25,9 +25,9 @@ pip3 install --user --upgrade pip pip3 install --ignore-installed --upgrade --user -e "${ALI_BOT_DIR}[services]" # Setup GitLab credentials (to push new data) -printf 'protocol=https\nhost=gitlab.cern.ch\nusername=alibuild\npassword=%s\n' "$GITLAB_TOKEN" | - git credential-store --file git-creds store -git config --global credential.helper "store --file $PWD/git-creds" +printf 'protocol=https\nhost=gitlab.cern.ch\nusername=%s\npassword=%s\n' "$GITLAB_USER" "$GITLAB_PASS" | +git credential-store --file ~/.git-creds store +git config --global credential.helper 'store --file ~/.git-creds' # Setup GitHub API credentials (to communicate with PRs) echo "$PR_TOKEN" > ~/.github-token