Skip to content

Commit

Permalink
gosec exception
Browse files Browse the repository at this point in the history
  • Loading branch information
delldubey authored and Utkarsh Dubey committed Feb 15, 2024
1 parent 9a10320 commit f05c786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,12 @@ func New(apiURL string, username string,
}

var client *http.Client
// #nosec G402
if insecure {
client = &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: insecure, // #nosec nolint:gosec
InsecureSkipVerify: insecure,
},
},
}
Expand Down

0 comments on commit f05c786

Please sign in to comment.