Noted, Since you’ve been successfully using PHP 8.2 and the branch has worked before, the error likely points to an issue with the OAuth permissions or configuration for this new web app instance. To check if the OAuth permissions are set up correctly, log into your GitHub account and navigate to your profile settings. Under “Applications” and then “Authorized OAuth Apps,” look for the entry related to Azure (often labeled as “Azure App Service” or similar) to ensure that it has the proper permissions. On the Azure side, open your web app in the Azure Portal and go to the Deployment Center; check for any error messages or configuration prompts that mention OAuth or token issues. If you see any discrepancies or suspect an issue, you might consider revoking the Azure app’s access from GitHub and then reconnecting it via the Deployment Center to refresh the OAuth permissions
https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment
If you have any further assistant, do let me know.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.