Skip to content

Commit

Permalink
Merge pull request #438 from alphagov/sengi/gosec-comment
Browse files Browse the repository at this point in the history
Move gosec annotation so that it continues to work.
  • Loading branch information
sengi authored Mar 5, 2024
2 parents 0af7e60 + 460f9ad commit 5ce0ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/backend_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func newBackendTransport(
transport.TLSHandshakeTimeout = 10 * time.Second
transport.ExpectContinueTimeout = 1 * time.Second

// #nosec G402 -- TODO: fix tests to use TLS properly.
if TLSSkipVerify {
// #nosec G402 -- TODO: fix tests to use TLS properly.
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
}

Expand Down

0 comments on commit 5ce0ce9

Please sign in to comment.