mirror of
https://github.com/securego/gosec.git
synced 2025-11-23 22:15:04 +02:00
Add a rule to detect the usage of ssh InsecureIgnoreHostKey function
This commit is contained in:
@@ -65,6 +65,10 @@ var _ = Describe("gas rules", func() {
|
||||
runner("G105", testutils.SampleCodeG105)
|
||||
})
|
||||
|
||||
It("should detect of ssh.InsecureIgnoreHostKey function", func() {
|
||||
runner("G106", testutils.SampleCodeG106)
|
||||
})
|
||||
|
||||
It("should detect sql injection via format strings", func() {
|
||||
runner("G201", testutils.SampleCodeG201)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user