From a677e0278958bf2e9a7065d9bb35e6bfa75494ff Mon Sep 17 00:00:00 2001 From: Jonas L Date: Thu, 13 Jul 2023 10:53:59 +0200 Subject: [PATCH] feat: add user-agent to http calls (#5) * feat: add user-agent to http calls * fix typo --- get-token.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/get-token.sh b/get-token.sh index 15368f9..70c8898 100755 --- a/get-token.sh +++ b/get-token.sh @@ -11,7 +11,12 @@ log() { # do_request [...] do_request() { - curl --fail-with-body --retry 2 --silent "$@" + curl \ + --fail-with-body \ + --retry 2 \ + --silent \ + --user-agent "tps-action/unknown" \ + "$@" } # get_ci_token