From ca77edabf6dbaa89bc7f7e8406a4211f5b57485f Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Tue, 14 May 2024 14:22:50 +0100 Subject: [PATCH] add useragent --- Build/Github.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Build/Github.cs b/Build/Github.cs index 2aa6daae0d..993d6fe0ec 100644 --- a/Build/Github.cs +++ b/Build/Github.cs @@ -21,7 +21,11 @@ public static async Task BuildInstallers(string token, string runId) var request = new HttpRequestMessage() { RequestUri = new Uri("https://api.github.com/repos/specklesystems/connector-installers/dispatches"), - Headers = { Authorization = new AuthenticationHeaderValue("Bearer", token) }, + Headers = + { + Authorization = new AuthenticationHeaderValue("Bearer", token), + UserAgent = { new ProductInfoHeaderValue("Speckle.build", "3.0.0") } + }, Content = content }; request.Headers.Add("X-GitHub-Api-Version", "2022-11-28");