Add semgrep-rules as submodule

This commit is contained in:
eikendev 2022-02-13 21:00:06 +01:00
parent a75478f83b
commit 5267359a60
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
71 changed files with 23 additions and 2555 deletions

View file

@ -21,7 +21,7 @@ func IsPasswordPwned(password string) (bool, error) {
return true, nil
}
// nosemgrep: tests.semgrep.go.lang.security.audit.crypto.insecure-module-used, tests.semgrep.go.lang.security.audit.crypto.use-of-sha1
// nosemgrep: tests.semgrep-rules.go.lang.security.audit.crypto.insecure-module-used, tests.semgrep-rules.go.lang.security.audit.crypto.use-of-sha1
hash := sha1.Sum([]byte(password)) //#nosec G401 -- False positive, only the first 5 bytes are transmitted.
hashStr := fmt.Sprintf("%X", hash)
lookup := hashStr[0:5]