mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-10-07 22:06:28 +00:00
chore(gosec): enable gosec and address findings
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ func getCertDirectory() (string, error) {
|
||||
// isCertificateValid checks if a certificate file exists and is not expired.
|
||||
func isCertificateValid(certFile string) bool {
|
||||
// Check if file exists
|
||||
certData, err := os.ReadFile(certFile)
|
||||
certData, err := os.ReadFile(certFile) //nolint:gosec // G304: path from trusted server config
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user