Attempting to add further SCM types to app_services#1103
Conversation
Added GitHub to SCM providers
There was a problem hiding this comment.
Hi @istairbn,
Thank you for opening this PR 🙂
This looks mostly good to me but could we update the website documentation with the new SCM type?
The file is here and once that has been updated I can see about getting this merged for you.
|
@istairbn thanks for the contribution. Expose deployment integration with 3rd party like GitHub, Bitbucket, will require 3 things:
It's already planned in our TODO list for the next few weeks, do you mind if I close this PR ? |
So I believe that's just an Azure Portal limitation - it should be possible to achieve the same thing in Terraform by using the It's worth noting that for Public repositories the Username and Password shouldn't be needed, so this would support both use-cases. (Internally Github supports using a Deployment Key as the As such - I believe once the broken (set credentials) API endpoint is fixed it should be possible to implement these:
|
|
@tombuildsstuff thanks for the sharing, I was not aware of the resources provided by GitHub provider. I did a quick glance on GitHub provider usage, it will require:
For web-hook resource, personal repositories are not supported, which will miss some of user scenarios. And if you take a look at the format web-hook URL set by Azure: For public repo under organization, with small change in validation logic, we should be able to enable GitHub deployment pipeline simply(no idea about how 1st deployment is trigged, needs to do some experimentation). For repo with limited access, we need to figure out a way to authenticate Azure web app to pull the code. deploy-key is a good thing but might not be valid for app service, need to check with service team. Or a simpler way for end user: set the personal access token to Microsoft.Web provider, then Azure will install web hooks for both public and private repos. Needs to take a look at the API and SDK support. Let me do some more investigation and share with you later. |
Keeping up to date
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
#1104
Trying to add an app service with GitHub SCM, it keeps failing out. Not entirely sure if this is the whole fix, but I think this is where it is validating against available SCMs?