mirror of
https://github.com/ivuorinen/f2b.git
synced 2026-03-18 10:02:08 +00:00
fix(security): suppress gosec false positives G703 and G118 (#136)
This commit is contained in:
@@ -28,6 +28,7 @@ func createTimeoutContext(base context.Context, config *Config) (context.Context
|
||||
if config != nil && config.CommandTimeout > 0 {
|
||||
timeout = config.CommandTimeout
|
||||
}
|
||||
// #nosec G118 -- cancel is returned to callers who are responsible for calling it
|
||||
return context.WithTimeout(base, timeout)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user