Authorize the GitHub Enterprise deployment process in the Azure App service
At my current company, we use GitHub Enterprise as our version control. Where can I login using SAML to access my account. Now I want to deploy the code that is on GitHub to the Azure App service. So in the azure deployment options, I opted for the GitHub option. But he says "Azure needs your permission to access your GitHub account" and asks me to log into GitHub. But I don't have a GitHub username and password as we are using SAML to access the GitHub account. Could you please help me how do I authorize a GitHub account using Azure?
source to share
The Azure deployment process is quite complex, trying to deploy from Github Enterprise I manage to get it to work like this:
On the Azure project menu, click Properties , then for the DEPLOYMENT TRIGGER URL, copy it.
Go to project settings in Github Enterprise, under Hooks and Services option and add a new website, set the DEPLOYMENT TRIGGER url to the payload url, leave everything else the same.
Now we add the deployment process, from the Azure project menu, select Deployment Options , then select External Repository as the source
In your Github account go to settings, then in the menu click Personal Access Tokens , now create a new token and give it the following scopes : repo and admin: pre_receive_hook , then copy the token
Finally, install the master branch that activates the web host when the code is pushed to the repo, we have to set the following items to the repository url:
https://<github_access_token>:x-oauth-basic@github.<enterprise>.net/<repo_name_from_root>
something like that:
https://c4207e6aae44ce086595c9abfcccb5123caf20cc:x-oauth-basic@github.mycompany.net/repolocation/deployrepo
Now push to your repo and the webhook will automatically initiate the deployment and build process.
source to share