diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1547b7a..d4c47b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -245,7 +245,7 @@ jobs: run: | EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) cat << $EOF > ${{ env.SSH_KEY_KNOWN_HOSTS }} - ${{ env.CONTAINER_HOST_NAME}}:${{ env.CONTAINER_HOST_PORT }} ${{ steps.get_ssh_public_key.outputs.value }} + [${{ env.CONTAINER_HOST_NAME}}]:${{ env.CONTAINER_HOST_PORT }} ${{ steps.get_ssh_public_key.outputs.value }} $EOF chmod 644 ${{ env.SSH_KEY_KNOWN_HOSTS }} echo "Known hosts is :"