public OAuthCredential AuthorizerCredential { get; set; }
OAuth credential of the account that authorized the Cloud Build GitHub App.
It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGitHubConfig\u003c/code\u003e class for the Cloud Build v2 API is 1.4.0, with previous versions also available, ranging back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitHubConfig\u003c/code\u003e is a class used for configuring connections to github.com, and it implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows setting up an \u003ccode\u003eAppInstallationId\u003c/code\u003e (a long integer) and \u003ccode\u003eAuthorizerCredential\u003c/code\u003e (of type \u003ccode\u003eOAuthCredential\u003c/code\u003e) to manage GitHub App connections.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class, including \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors available, a default one, and another which takes a \u003ccode\u003eGitHubConfig\u003c/code\u003e parameter named \u003ccode\u003eother\u003c/code\u003e, for creating a new instance based off an existing instance.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class GitHubConfig (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.GitHubConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.GitHubConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.GitHubConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.GitHubConfig) \n\n public sealed class GitHubConfig : IMessage\u003cGitHubConfig\u003e, IEquatable\u003cGitHubConfig\u003e, IDeepCloneable\u003cGitHubConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class GitHubConfig.\n\nConfiguration for connections to github.com. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitHubConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitHubConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitHubConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitHubConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### GitHubConfig()\n\n public GitHubConfig()\n\n### GitHubConfig(GitHubConfig)\n\n public GitHubConfig(GitHubConfig other)\n\nProperties\n----------\n\n### AppInstallationId\n\n public long AppInstallationId { get; set; }\n\nGitHub App installation id.\n\n### AuthorizerCredential\n\n public OAuthCredential AuthorizerCredential { get; set; }\n\nOAuth credential of the account that authorized the Cloud Build GitHub App.\nIt is recommended to use a robot account instead of a human user account.\nThe OAuth token must be tied to the Cloud Build GitHub App."]]