diff --git a/cmd/bots/internal/telegram/config/config.go b/cmd/bots/internal/telegram/config/config.go index 02b889f3..a394ca77 100644 --- a/cmd/bots/internal/telegram/config/config.go +++ b/cmd/bots/internal/telegram/config/config.go @@ -66,7 +66,7 @@ func tryRemoveWebhookIfExists(botToken string) (err error) { } cl := &http.Client{Timeout: telegramRemoveWebhookTimeout} - resp, err := cl.Do(req) + resp, err := cl.Do(req) //#nosec: G704 is not valid here because we control all data if err != nil { return errors.Wrap(err, "failed to remove webhook") } diff --git a/pkg/analysis/l2/l2analyzer.go b/pkg/analysis/l2/l2analyzer.go index 0cee9f84..d3b8ca95 100644 --- a/pkg/analysis/l2/l2analyzer.go +++ b/pkg/analysis/l2/l2analyzer.go @@ -87,7 +87,7 @@ func collectL2Height(ctx context.Context, url string, logger *slog.Logger) (_ ui setHeaders(req, userAgent, requestID, timeSend, timeoutStr) httpClient := http.Client{Timeout: l2HeightRequestTimeout} - resp, err := httpClient.Do(req) + resp, err := httpClient.Do(req) //#nosec: G704 is not valid here because we control all data if err != nil { logger.Error("Failed to send a request to l2 node", attrs.Error(err), slog.String("nodeURL", url)) return 0, fmt.Errorf("failed to send request to l2 node: %w", err)