Skip to content

Commit

Permalink
ignoring not applicable gosec issue, this code is only used for testi…
Browse files Browse the repository at this point in the history
…ng purposes

G107 (CWE-88): Potential HTTP request made with variable url (Confidence: MEDIUM, Severity: MEDIUM)
  • Loading branch information
dikhan committed Jul 9, 2020
1 parent 2e79577 commit 37e1db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/test_api_utils.go
Expand Up @@ -89,7 +89,7 @@ func checkResourcesExist(resourceInstancePath string, resourceID string) error {
}

func testAccPreCheck(t *testing.T, swaggerURLEndpoint string) {
res, err := http.Get(swaggerURLEndpoint)
res, err := http.Get(swaggerURLEndpoint) // #nosec G107
if err != nil {
t.Fatalf("error occurred when verifying if the API is up and running: %s", err)
}
Expand Down

0 comments on commit 37e1db4

Please sign in to comment.