An Azure service that provides streamlined full-stack web app development.
Hello Moazzem Hossain,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your Azure Static Web Apps deployment workflow never runs and GitHub reports "Actions has been disabled for this user".
The deployment is failing before Azure Static Web Apps can build or deploy the app. The GitHub-side error: HTTP 422: Actions has been disabled for this user means that GitHub is blocking workflow execution for the user/account/repository context. - https://learn.microsoft.com/en-us/azure/static-web-apps/publish-devops, https://learn.microsoft.com/en-us/azure/static-web-apps/build-configuration.
The best method to resolve is to:
- Stop changing Azure Static Web Apps build settings until GitHub Actions can create a run.
- Verify GitHub Actions is enabled at repository and organization level.
- If the account-level error remains, escalate to GitHub Support for account restriction review.
- For immediate deployment, move the repository to an unrestricted GitHub account/org or use Azure DevOps.
- Reset the Azure Static Web Apps deployment token and update the repository secret.
- Use a clean Static Web Apps workflow with
push,pull_request, andworkflow_dispatch.
After moving the deployment to an unrestricted GitHub account or Azure DevOps and updating the Static Web Apps deployment token, the workflow should create a run. Only after a workflow run starts should you troubleshoot app_location, api_location, output_location, build commands, Oryx, or deployment-token errors.
Use the below resource links for more reading and implementation steps:
- https://learn.microsoft.com/en-us/azure/static-web-apps/get-started-portal
- https://learn.microsoft.com/en-us/azure/static-web-apps/build-configuration
- https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
- https://docs.github.com/en/site-policy/acceptable-use-policies/github-appeal-and-reinstatement
I hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.