Skip to content

Commit

Permalink
Merge pull request #961 from GitGuardian/salomevoltz/scrt-4863-ggshie…
Browse files Browse the repository at this point in the history
…ld-allow-changing-user-agent-in-request

feat(monitoring): Use env variable as user agent
  • Loading branch information
salome-voltz authored Sep 13, 2024
2 parents 5a57931 + 921e54a commit 63813e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ggshield/core/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from typing import Optional

import requests
Expand Down Expand Up @@ -66,7 +67,7 @@ def create_client(
return GGClient(
api_key=api_key,
base_uri=api_url,
user_agent="ggshield",
user_agent=os.getenv("GG_USER_AGENT", "ggshield"),
timeout=60,
session=session,
callbacks=callbacks,
Expand Down

0 comments on commit 63813e2

Please sign in to comment.