Skip to content

Commit fffd6ca

Browse files
fix(#608): workaround (#614)
* fix(#608): issue with GITHUB_TOKEN env variable Signed-off-by: Andy Augustin <[email protected]> * fix(#608): workaround Signed-off-by: Andy Augustin <[email protected]> --------- Signed-off-by: Andy Augustin <[email protected]>
1 parent 0f01112 commit fffd6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync_template.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ function gh_login_target_github() {
111111
info "target server url: ${target_repo_hostname}"
112112
info "logging out of the target if logged in"
113113
gh auth logout --hostname "${target_repo_hostname}" || debug "not logged in"
114-
unset GH_TOKEN
114+
# unset GITHUB_TOKEN
115115
info "login to the target git repository"
116-
gh auth login --git-protocol "https" --hostname "${target_repo_hostname}" --with-token <<< "${TARGET_GH_TOKEN}"
116+
gh auth login --git-protocol "https" --hostname "${target_repo_hostname}" --with-token <<< "${TARGET_GH_TOKEN}" || warn "login with target token somehow did not work. Please consider using the \'target_github_token\` parameter."
117117
gh auth setup-git --hostname "${target_repo_hostname}"
118118
gh auth status --hostname "${target_repo_hostname}"
119119
fi

0 commit comments

Comments
 (0)