since accepting the github host entry programatically is no more secure
This commit is contained in:
parent
39ecb70046
commit
b2fe7206e1
|
@ -47,7 +47,7 @@ function run() {
|
||||||
tmpfile=$(mktemp /tmp/tmp_git.XXXXXX)
|
tmpfile=$(mktemp /tmp/tmp_git.XXXXXX)
|
||||||
chmod 600 "$tmpfile"
|
chmod 600 "$tmpfile"
|
||||||
echo "$GIT_SSH_PRIVATE_KEY" >"$tmpfile"
|
echo "$GIT_SSH_PRIVATE_KEY" >"$tmpfile"
|
||||||
export GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i ${tmpfile} -F /dev/null"
|
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${tmpfile} -F /dev/null"
|
||||||
else
|
else
|
||||||
PAT="${git_commit_username}:${git_commit_password}"
|
PAT="${git_commit_username}:${git_commit_password}"
|
||||||
AUTH=$(echo -n "$PAT" | openssl base64 | tr -d '\n')
|
AUTH=$(echo -n "$PAT" | openssl base64 | tr -d '\n')
|
||||||
|
|
Loading…
Reference in New Issue