mirror of
https://github.com/securego/gosec.git
synced 2026-01-15 01:33:41 +08:00
Fix the TLS config rule when parsing the settings from a variable (#911)
This commit is contained in:
@@ -15,6 +15,6 @@ func New{{.Name}}TLSCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node)
|
||||
{{range $cipherName := .Ciphers }} "{{$cipherName}}",
|
||||
{{end}}
|
||||
},
|
||||
}, []ast.Node{(*ast.CompositeLit)(nil)}
|
||||
}, []ast.Node{(*ast.CompositeLit)(nil), (*ast.AssignStmt)(nil)}
|
||||
}
|
||||
`))
|
||||
|
||||
Reference in New Issue
Block a user