mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
2aad3f02a5
Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
18 lines
285 B
Go
18 lines
285 B
Go
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()},
|
|
}
|