Skip to content

Commit 11f5967

Browse files
committed
Silence "codeql[go/insecure-hostkeycallback]: intentionally ignore host key for internal environment"
Signed-off-by: Norio Nomura <[email protected]>
1 parent 694e52f commit 11f5967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sshutil/sshutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ func ExecuteScriptViaInProcessClient(host string, port int, c *sshocker.SSHConfi
550550
sshConfig := &ssh.ClientConfig{
551551
User: user,
552552
Auth: []ssh.AuthMethod{ssh.PublicKeys(signer)},
553-
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
553+
HostKeyCallback: ssh.InsecureIgnoreHostKey(), // codeql[go/insecure-hostkeycallback]: intentionally ignore host key for internal environment
554554
Timeout: 10 * time.Second,
555555
}
556556

0 commit comments

Comments
 (0)