Merge pull request #6581 from wallrj/gosec-501
Enable gosec G501: Blocklisted import crypto/md5
This commit is contained in:
commit
47d720be39
@ -27,4 +27,4 @@ issues:
|
||||
exclude-rules:
|
||||
- linters:
|
||||
- gosec
|
||||
text: "G(101|107|204|306|402|404|501)"
|
||||
text: "G(101|107|204|306|402|404)"
|
||||
|
||||
@ -21,7 +21,7 @@ package rfc2136
|
||||
|
||||
import (
|
||||
"crypto/hmac"
|
||||
"crypto/md5"
|
||||
"crypto/md5" // #nosec G501 -- MD5 is a supported TSIG Algorithm
|
||||
"crypto/sha1" // #nosec G505 -- SHA1 is a supported TSIG Algorithm
|
||||
"crypto/sha256"
|
||||
"crypto/sha512"
|
||||
|
||||
@ -21,7 +21,7 @@ package rfc2136
|
||||
|
||||
import (
|
||||
"crypto/hmac"
|
||||
"crypto/md5"
|
||||
"crypto/md5" // #nosec G501 -- MD5 is a supported TSIG Algorithm
|
||||
"crypto/sha1" // #nosec G505 -- SHA1 is a supported TSIG Algorithm
|
||||
"crypto/sha256"
|
||||
"crypto/sha512"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user