since accepting the github host entry programatically is no more secure

This commit is contained in:
burnettk 2023-01-20 19:06:59 -05:00
parent 2a55c05473
commit fd2146bd46
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ function run() {
tmpfile=$(mktemp /tmp/tmp_git.XXXXXX)
chmod 600 "$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
PAT="${git_commit_username}:${git_commit_password}"
AUTH=$(echo -n "$PAT" | openssl base64 | tr -d '\n')