From 43e8103b35f61a4b623f28405cb5e38003571150 Mon Sep 17 00:00:00 2001 From: Andy Augustin Date: Mon, 27 Jan 2025 22:28:06 +0100 Subject: [PATCH] fix(#586): fix for the authentication part Signed-off-by: Andy Augustin --- src/entrypoint.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/entrypoint.sh b/src/entrypoint.sh index efba5738..2ef33255 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -201,14 +201,12 @@ elif [[ -n "${SOURCE_GH_TOKEN}" ]] || [[ -n "${GITHUB_TOKEN}" ]]; then info "login to the source git repository" info "source server url: ${SOURCE_REPO_HOSTNAME}" gh auth login --git-protocol "https" --hostname "${SOURCE_REPO_HOSTNAME}" --with-token <<< "${SOURCE_GH_TOKEN}" - gh auth status if [[ -n "${TARGET_GH_TOKEN}" ]]; then TARGET_REPO_HOSTNAME=$(echo "${GITHUB_SERVER_URL}" | cut -d '/' -f 3) export TARGET_REPO_HOSTNAME info "login to the target git repository" info "target server url: ${TARGET_REPO_HOSTNAME}" gh auth login --git-protocol "https" --hostname "${TARGET_REPO_HOSTNAME}" --with-token <<< "${TARGET_GH_TOKEN}" - gh auth status fi gh auth switch gh auth status