Skip to content

Commit

Permalink
Add SHA to useragent. (actions#1694)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang authored Feb 17, 2022
1 parent 17153c9 commit 28f0027
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Runner.Common/HostContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ public HostContext(string hostType, string logFile = null)
_userAgents.Add(new ProductInfoHeaderValue("RunnerId", runnerSettings.AgentId.ToString(CultureInfo.InvariantCulture)));
_userAgents.Add(new ProductInfoHeaderValue("GroupId", runnerSettings.PoolId.ToString(CultureInfo.InvariantCulture)));
}

_userAgents.Add(new ProductInfoHeaderValue("CommitSHA", BuildConstants.Source.CommitHash));
}

public string GetDirectory(WellKnownDirectory directory)
Expand Down

0 comments on commit 28f0027

Please sign in to comment.