Skip to content

Commit

Permalink
Move gosec annotation so that it continues to work.
Browse files Browse the repository at this point in the history
Seems the semantics of gosec's exclusion comments subtly changed
recently :/ Moving the comment inside the block / directly above the
statement it applies to seems to fix it.
  • Loading branch information
sengi committed Mar 5, 2024
1 parent 0af7e60 commit 460f9ad
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 460f9ad

Please sign in to comment.