Skip to content

Commit 80ff95f

Browse files
Fix configureing the runner due to User-Agent dependent Response (#220)
* 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 * Use own user agent, seems to work as well
1 parent d1754be commit 80ff95f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

protocol/connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ func (vssConnection *VssConnection) requestWithContextNoAuth(
242242
header.Set(acceptHeader, "application/json")
243243
}
244244
}
245+
header["User-Agent"] = []string{"github-act-runner/v0.11.0"}
245246
if apiversion != "" {
246247
// vssservice does only accept contenttype in a single line
247248
if len(header[contentTypeHeader]) > 0 {

0 commit comments

Comments
 (0)