mirror of
https://github.com/pushbits/server.git
synced 2025-06-13 16:12:01 +02:00
Remove semgrep, use errcheck, gosec, govulncheck
This commit is contained in:
parent
e078a30fe2
commit
f251b12fc8
19 changed files with 197 additions and 803 deletions
|
@ -22,7 +22,6 @@ func IsPasswordPwned(password string) (bool, error) {
|
|||
return true, nil
|
||||
}
|
||||
|
||||
// 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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue