Skip to content

Commit

Permalink
chore(gosec): use nolint instead of nosec for gosec
Browse files Browse the repository at this point in the history
Due to securego/gosec#1105 we need to use
`nolint` instead of `nosec` for `gosec`.
  • Loading branch information
silvestre committed Mar 28, 2024
1 parent 4784fa8 commit af10d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/acceptance/api/api_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var _ = BeforeSuite(func() {
BindServiceToApp(cfg, appName, instanceName)
StartApp(appName, cfg.CfPushTimeoutDuration())

// #nosec G402
//nolint:gosec // #nosec G402 -- due to https://github.com/securego/gosec/issues/1105
client = &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
Expand Down
2 changes: 1 addition & 1 deletion src/acceptance/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func GetHTTPClient(cfg *config.Config) *http.Client {
TLSHandshakeTimeout: 10 * time.Second,
DisableCompression: true,
DisableKeepAlives: true,
// #nosec G402
//nolint:gosec // #nosec G402 -- due https://github.com/securego/gosec/issues/11051
TLSClientConfig: &tls.Config{
InsecureSkipVerify: cfg.SkipSSLValidation,
},
Expand Down

0 comments on commit af10d57

Please sign in to comment.