mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
21 lines
293 B
Go
21 lines
293 B
Go
|
package testutils
|
||
|
|
||
|
import "github.com/securego/gosec/v2"
|
||
|
|
||
|
var (
|
||
|
// SampleCodeG106 - ssh InsecureIgnoreHostKey
|
||
|
SampleCodeG106 = []CodeSample{
|
||
|
{[]string{`
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"golang.org/x/crypto/ssh"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
_ = ssh.InsecureIgnoreHostKey()
|
||
|
}
|
||
|
`}, 1, gosec.NewConfig()},
|
||
|
}
|
||
|
)
|