Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @Abdal Khan
Thank you for sharing those details the pattern you described (GitHub returning 202 Accepted while Azure shows 403 Forbidden, plus Force Sync working and commits showing as “temp” / author N/A) is very helpful in narrowing this down.
This typically means GitHub is successfully delivering the webhook, but the App Service’s SCM (Kudu) endpoint is rejecting the deployment request due to an authorization or access restriction on the Azure side.
Recommended Checks
- Access Restrictions (most common cause) Go to your App Service > Networking > Access Restrictions. Make sure the SCM endpoint (*.scm.azurewebsites.net) is not blocked. Often the SCM site needs broader access than the main site. > Uncheck “Same restrictions as main site” and ensure there’s an Allow rule for the SCM site.
- Re-authorize the GitHub connection In Deployment Center, disconnect and reconnect your GitHub repository. This refreshes the authentication token and permissions especially useful if the repo was forked.
- Enable SCM Basic Authentication Go to Configuration >General settings and set SCM Basic Auth Publishing Credentials to On. Save the change, then go back to Deployment Center and save the settings again to refresh the webhook.
Reference :
https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment?tabs=github
https://learn.microsoft.com/en-us/azure/app-service/configure-basic-auth-disable?tabs=portal
Long-term Recommendation
For better security, logging, and reliability, I strongly suggest switching from the App Service Build Service to GitHub Actions as the deployment method.
https://learn.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=openid%2Caspnetcore
If the answer is helpful, Please do click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you