Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/bots/internal/telegram/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/analysis/l2/l2analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down