We have added support for GitHub in Azure for U.S. Government and Azure China.
Due to compliance reasons, we suggest customers get their OAuth application to authenticate against their own GitHub accounts. To use GitHub in Azure Gov and Azure China, you can bring your own (BYO) GitHub OAuth application.
Note: BYO GitHub OAuth application capability is not available in Azure public. In Azure public, we use Microsoft managed GitHub OAuth app which simplifies the setup by not requiring customers to bring and manage their own OAuth applications.
Update the Access Policies on the left sidebar and click "+ Add Access Policy".
Under secret permissions, grant "List, Get" permissions and select the principal as your Azure Data Factory. It will allow the data factory to access your GitHub client secret during GitHub authentication. Click add and return to the data factory.
Configure the GitHub repository in Azure Data Factory
In the ADF management tab, select "Git configuration" and click "Configure."
Select repository type as GitHub and enter the GitHub account associated with your repository, then click continue.