Skip to content

Commit

Permalink
refactor: ignore host key (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey authored Jun 5, 2024
1 parent 9882cb0 commit 0d070fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
"github.com/go-git/go-git/v5/storage/memory"
internalssh "golang.org/x/crypto/ssh"
"golang.org/x/mod/modfile"

"github.com/strangelove-ventures/heighliner/docker"
Expand Down Expand Up @@ -192,6 +193,7 @@ func getModFile(
if err != nil {
return nil, errors.New("failed to generate public key")
}
key.HostKeyCallback = internalssh.InsecureIgnoreHostKey()

cloneOpts.URL = fmt.Sprintf("git@%s:%s/%s.git", repoHost, organization, repoName)
cloneOpts.Auth = key
Expand Down

0 comments on commit 0d070fc

Please sign in to comment.