From 1e13e0a34d9a96e2ce4166956ffc8a451e4ad24b Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Fri, 5 Sep 2025 17:38:49 +0200 Subject: [PATCH 1/2] Fix configureing the runner due to User-Agent dependent Response * Without User Agent we get now url https://broker.actions.githubusercontent.com/rest * The new url is not a vss server and v2 flow is not enabled --- protocol/connection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/connection.go b/protocol/connection.go index 3f14755..90439d0 100644 --- a/protocol/connection.go +++ b/protocol/connection.go @@ -242,6 +242,7 @@ func (vssConnection *VssConnection) requestWithContextNoAuth( header.Set(acceptHeader, "application/json") } } + header["User-Agent"] = []string{"GitHubActionsRunner-Unknown/0"} if apiversion != "" { // vssservice does only accept contenttype in a single line if len(header[contentTypeHeader]) > 0 { From 36f71ab0fc2af7dfc64e820ac19a05d08928a787 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Fri, 5 Sep 2025 17:42:31 +0200 Subject: [PATCH 2/2] Use own user agent, seems to work as well --- protocol/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/connection.go b/protocol/connection.go index 90439d0..bd226bd 100644 --- a/protocol/connection.go +++ b/protocol/connection.go @@ -242,7 +242,7 @@ func (vssConnection *VssConnection) requestWithContextNoAuth( header.Set(acceptHeader, "application/json") } } - header["User-Agent"] = []string{"GitHubActionsRunner-Unknown/0"} + header["User-Agent"] = []string{"github-act-runner/v0.11.0"} if apiversion != "" { // vssservice does only accept contenttype in a single line if len(header[contentTypeHeader]) > 0 {