Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ linters:
presets:
- common-false-positives
- std-error-handling
rules:
- path: "_test.go$"
text: "^G703:"
linters:
- gosec
formatters:
enable:
- gofmt
Expand Down
2 changes: 1 addition & 1 deletion internal/osnadmin/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func httpClient(caCertPool *x509.CertPool, tlsClientCert tls.Certificate) *http.

func httpDo(req *http.Request, caCertPool *x509.CertPool, tlsClientCert tls.Certificate) (*http.Response, error) {
client := httpClient(caCertPool, tlsClientCert)
return client.Do(req)
return client.Do(req) //#nosec G704 -- responsibility of client to supply valid URL root.
}

func httpGet(url string, caCertPool *x509.CertPool, tlsClientCert tls.Certificate) (*http.Response, error) {
Expand Down