gosec/testutils/g106_samples.go

19 lines
285 B
Go
Raw Permalink Normal View History

package testutils
import "github.com/securego/gosec/v2"
// SampleCodeG106 - ssh InsecureIgnoreHostKey
var SampleCodeG106 = []CodeSample{
{[]string{`
package main
import (
"golang.org/x/crypto/ssh"
)
func main() {
_ = ssh.InsecureIgnoreHostKey()
}
`}, 1, gosec.NewConfig()},
}