chore: add nolint annotations for gosec linter

Add //nolint:gosec annotations for intentional code patterns
that are safe in context (path traversal in release tool,
uintptr conversion for terminals, weak rand in tests,
TLS skip verify for user-configured insecure mode).

Assisted-by: Kimi-K2.5 via Crush <crush@charm.land>
This commit is contained in:
Andrey Nering
2026-04-13 10:32:09 -03:00
parent b36fcfd8bb
commit 219bf3e5a5
5 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ func buildHTTPClient(insecure bool, caCert, cert, certKey string) (*http.Client,
}
tlsConfig := &tls.Config{
InsecureSkipVerify: insecure,
InsecureSkipVerify: insecure, //nolint:gosec
}
// Load custom CA certificate if provided