fix(security): suppress gosec false positives G703 and G118

Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-15 13:41:26 +00:00
parent b7390c02f8
commit 0cb9da3085
3 changed files with 2 additions and 9 deletions

View File

@@ -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