kwin commented on code in PR #155: URL: https://github.com/apache/maven-scm/pull/155#discussion_r926907540
########## maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkout/GitExeSshCheckOutCommandTckTest.java: ########## @@ -0,0 +1,71 @@ +package org.apache.maven.scm.provider.git.gitexe.command.checkout; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import java.nio.file.Files; +import java.nio.file.Path; +import java.security.GeneralSecurityException; + +import org.apache.commons.io.FilenameUtils; +import org.apache.maven.scm.provider.git.command.checkout.GitSshCheckOutCommandTckTest; +import org.apache.maven.scm.provider.git.gitexe.GitExeScmProvider; +import org.apache.maven.scm.provider.git.repository.GitScmProviderRepository; +import org.apache.maven.scm.repository.ScmRepository; + +/** + * + */ +public class GitExeSshCheckOutCommandTckTest + extends GitSshCheckOutCommandTckTest +{ + private Path knownHostsFile; + + public static final String VARIABLE_GIT_SSH_COMMAND = "GIT_SSH_COMMAND"; // https://git-scm.com/docs/git#Documentation/git.txt-codeGITSSHCOMMANDcode, requires git 2.3.0 or newer Review Comment: This is security relevant (i.e. allows man-in-the-middle attacks because it disables hosts check, so I guess it is a bit more complicated deliberately. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
