mirror of
https://github.com/securego/gosec.git
synced 2024-11-06 03:55:50 +00:00
Make sure all rules are mapped to CWE numbers
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
parent
8630c43b66
commit
32be4a5cc6
1 changed files with 4 additions and 0 deletions
4
issue.go
4
issue.go
|
@ -53,6 +53,7 @@ var IssueToCWE = map[string]Cwe{
|
||||||
"G104": GetCwe("703"),
|
"G104": GetCwe("703"),
|
||||||
"G106": GetCwe("322"),
|
"G106": GetCwe("322"),
|
||||||
"G107": GetCwe("88"),
|
"G107": GetCwe("88"),
|
||||||
|
"G108": GetCwe("200"),
|
||||||
"G109": GetCwe("190"),
|
"G109": GetCwe("190"),
|
||||||
"G110": GetCwe("409"),
|
"G110": GetCwe("409"),
|
||||||
"G201": GetCwe("89"),
|
"G201": GetCwe("89"),
|
||||||
|
@ -64,6 +65,8 @@ var IssueToCWE = map[string]Cwe{
|
||||||
"G303": GetCwe("377"),
|
"G303": GetCwe("377"),
|
||||||
"G304": GetCwe("22"),
|
"G304": GetCwe("22"),
|
||||||
"G305": GetCwe("22"),
|
"G305": GetCwe("22"),
|
||||||
|
"G306": GetCwe("276"),
|
||||||
|
"G307": GetCwe("703"),
|
||||||
"G401": GetCwe("326"),
|
"G401": GetCwe("326"),
|
||||||
"G402": GetCwe("295"),
|
"G402": GetCwe("295"),
|
||||||
"G403": GetCwe("310"),
|
"G403": GetCwe("310"),
|
||||||
|
@ -73,6 +76,7 @@ var IssueToCWE = map[string]Cwe{
|
||||||
"G503": GetCwe("327"),
|
"G503": GetCwe("327"),
|
||||||
"G504": GetCwe("327"),
|
"G504": GetCwe("327"),
|
||||||
"G505": GetCwe("327"),
|
"G505": GetCwe("327"),
|
||||||
|
"G601": GetCwe("118"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Issue is returned by a gosec rule if it discovers an issue with the scanned code.
|
// Issue is returned by a gosec rule if it discovers an issue with the scanned code.
|
||||||
|
|
Loading…
Reference in a new issue