@@ -31,7 +31,7 @@ func (s *TwilioService) postJSON(ctx context.Context, path string, req any, resu
3131 httpReq .Header .Set ("Content-Type" , "application/json" )
3232 httpReq .Header .Set ("xi-api-key" , s .client .apiKey )
3333
34- resp , err := http .DefaultClient .Do (httpReq )
34+ resp , err := http .DefaultClient .Do (httpReq ) //nolint:gosec // G704: API client, URL is fixed ElevenLabs endpoint
3535 if err != nil {
3636 return fmt .Errorf ("request failed: %w" , err )
3737 }
@@ -238,7 +238,7 @@ func (s *PhoneNumberService) List(ctx context.Context) ([]PhoneNumber, error) {
238238
239239 httpReq .Header .Set ("xi-api-key" , s .client .apiKey )
240240
241- resp , err := http .DefaultClient .Do (httpReq )
241+ resp , err := http .DefaultClient .Do (httpReq ) //nolint:gosec // G704: API client, URL is fixed ElevenLabs endpoint
242242 if err != nil {
243243 return nil , fmt .Errorf ("request failed: %w" , err )
244244 }
@@ -275,7 +275,7 @@ func (s *PhoneNumberService) Get(ctx context.Context, phoneNumberID string) (*Ph
275275
276276 httpReq .Header .Set ("xi-api-key" , s .client .apiKey )
277277
278- resp , err := http .DefaultClient .Do (httpReq )
278+ resp , err := http .DefaultClient .Do (httpReq ) //nolint:gosec // G704: API client, URL is fixed ElevenLabs endpoint
279279 if err != nil {
280280 return nil , fmt .Errorf ("request failed: %w" , err )
281281 }
@@ -327,7 +327,7 @@ func (s *PhoneNumberService) Update(ctx context.Context, phoneNumberID string, r
327327 httpReq .Header .Set ("Content-Type" , "application/json" )
328328 httpReq .Header .Set ("xi-api-key" , s .client .apiKey )
329329
330- resp , err := http .DefaultClient .Do (httpReq )
330+ resp , err := http .DefaultClient .Do (httpReq ) //nolint:gosec // G704: API client, URL is fixed ElevenLabs endpoint
331331 if err != nil {
332332 return nil , fmt .Errorf ("request failed: %w" , err )
333333 }
@@ -364,7 +364,7 @@ func (s *PhoneNumberService) Delete(ctx context.Context, phoneNumberID string) e
364364
365365 httpReq .Header .Set ("xi-api-key" , s .client .apiKey )
366366
367- resp , err := http .DefaultClient .Do (httpReq )
367+ resp , err := http .DefaultClient .Do (httpReq ) //nolint:gosec // G704: API client, URL is fixed ElevenLabs endpoint
368368 if err != nil {
369369 return fmt .Errorf ("request failed: %w" , err )
370370 }
0 commit comments