diff --git a/dist/index.js.map b/dist/index.js.map index 5ae2fa44..d1470e1f 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/dist/platforms/ubuntu/steps/set_gitcredential.sh b/dist/platforms/ubuntu/steps/set_gitcredential.sh index a336fc2b..dd3943de 100755 --- a/dist/platforms/ubuntu/steps/set_gitcredential.sh +++ b/dist/platforms/ubuntu/steps/set_gitcredential.sh @@ -7,12 +7,20 @@ else echo "GIT_PRIVATE_TOKEN is set configuring git credentials" git config --global credential.helper store - git config --global --replace-all url."https://token:$GIT_PRIVATE_TOKEN@github.com/".insteadOf ssh://git@github.com/ - git config --global --add url."https://token:$GIT_PRIVATE_TOKEN@github.com/".insteadOf git@github.com - git config --global --add url."https://token:$GIT_PRIVATE_TOKEN@github.com/".insteadOf "https://github.com/" - - git config --global url."https://ssh:$GIT_PRIVATE_TOKEN@github.com/".insteadOf "ssh://git@github.com/" - git config --global url."https://git:$GIT_PRIVATE_TOKEN@github.com/".insteadOf "git@github.com:" + + echo "activating credential halper..." + git config --global credential.helper store + + echo "writing credentials to helper..." + { + echo protocol=https + echo host=github.com + echo username=token + echo password=$GIT_PRIVATE_TOKEN + } | git credential approve + + echo "displaying credentials file..." + cat $HOME/.git-credentials fi