mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-03 18:37:18 +00:00
chore(lint): suppress gosec false positives on SSRF-safe HTTP client calls
This commit is contained in:
@@ -32,7 +32,7 @@ func unsplashImage(url string, c *echo.Context) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
resp, err := utils.NewSSRFSafeHTTPClient().Do(req)
|
||||
resp, err := utils.NewSSRFSafeHTTPClient().Do(req) //nolint:gosec // SSRF protection is handled by the SSRF-safe client
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user