mirror of
https://github.com/ivuorinen/f2b.git
synced 2026-03-19 19:02:31 +00:00
fix(security): suppress gosec false positives G703 and G118
Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>
This commit is contained in:
@@ -28,7 +28,7 @@ func createTimeoutContext(base context.Context, config *Config) (context.Context
|
||||
if config != nil && config.CommandTimeout > 0 {
|
||||
timeout = config.CommandTimeout
|
||||
}
|
||||
return context.WithTimeout(base, timeout)
|
||||
return context.WithTimeout(base, timeout) // #nosec G118 -- cancel is returned to callers who are responsible for calling it
|
||||
}
|
||||
|
||||
// IsCI detects if we're running in a CI environment
|
||||
|
||||
Reference in New Issue
Block a user