Merge pull request #6581 from wallrj/gosec-501

Enable gosec G501: Blocklisted import crypto/md5
This commit is contained in:
jetstack-bot 2024-01-02 11:34:40 +00:00 committed by GitHub
commit 47d720be39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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)"

View File

@ -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"

View File

@ -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"