Skip to content

Commit

Permalink
Ignore false-positive Frogbot alert
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 committed Sep 27, 2024
1 parent b20754d commit d73d459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artifactory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ func checkForErrDueToMissingProxy(spec *spec.SpecFiles, t *testing.T) {

func checkIfServerIsUp(port, proxyScheme string, useClientCerts bool) error {
tr := &http.Transport{
//#nosec G402
//#nosec G402 jfrog-ignore - false positive
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}

Expand All @@ -1793,6 +1793,7 @@ func checkIfServerIsUp(port, proxyScheme string, useClientCerts bool) error {
}
tr.TLSClientConfig.Certificates = []tls.Certificate{cert}
}
// jfrog-ignore - false positive
client := &http.Client{Transport: tr}

for attempt := 0; attempt < 20; attempt++ {
Expand Down

0 comments on commit d73d459

Please sign in to comment.