Azure Static Web Apps deployment workflow never runs and GitHub reports "Actions has been disabled for this user"

Moazzem Hossain 80 Reputation points
2026-07-27T08:16:35.75+00:00

Hi everyone,

I'm troubleshooting an Azure Static Web Apps deployment connected to GitHub, but deployments never start even though the configuration appears correct.

I have verified the following:

  • Azure Static Web App is connected to the correct GitHub repository and main branch.
  • GitHub Actions is enabled.
  • Organization policy allows all actions.
  • Workflow permissions are set to Read and Write.
  • No repository rulesets exist.
  • The repository is included in the organization's allowed repositories.
  • The Azure Static Web Apps workflow and a separate test workflow are both listed as Active.
  • Workflow files exist under .github/workflows.
  • CodeQL workflows run successfully.

However:

  • The Azure Static Web Apps workflow has 0 runs.
  • A simple test workflow also has 0 runs.
  • Pushes to main never trigger either workflow.
  • Manual workflow execution returns "Actions has been disabled for this user" (HTTP 422).
  • Repository webhooks return an empty list ([]).

An additional detail that may be relevant is that the GitHub account being used (MoazzemHossain-bot) was previously flagged/restricted by GitHub and I am unsure whether that status could still be affecting GitHub Actions execution. The account can push code, administer the repository, and run GitHub-managed workflows such as CodeQL, but custom workflows never execute.

Has anyone encountered a situation where GitHub-managed workflows run successfully, but all custom workflows remain at 0 runs and manual dispatch returns HTTP 422? Could this be related to an account restriction, workflow approval requirement, or another GitHub Actions limitation?

Any guidance would be greatly appreciated. Thank you.Hi everyone,

I'm troubleshooting an Azure Static Web Apps deployment connected to GitHub, but deployments never start even though the configuration appears correct.

I have verified the following:

  • Azure Static Web App is connected to the correct GitHub repository and main branch.
  • GitHub Actions is enabled.
  • Organization policy allows all actions.
  • Workflow permissions are set to Read and Write.
  • No repository rulesets exist.
  • The repository is included in the organization's allowed repositories.
  • The Azure Static Web Apps workflow and a separate test workflow are both listed as Active.
  • Workflow files exist under .github/workflows.
  • CodeQL workflows run successfully.

However:

  • The Azure Static Web Apps workflow has 0 runs.
  • A simple test workflow also has 0 runs.
  • Pushes to main never trigger either workflow.
  • Manual workflow execution returns "Actions has been disabled for this user" (HTTP 422).
  • Repository webhooks return an empty list ([]).

An additional detail that may be relevant is that the GitHub account being used (MoazzemHossain-bot) was previously flagged/restricted by GitHub and I am unsure whether that status could still be affecting GitHub Actions execution. The account can push code, administer the repository, and run GitHub-managed workflows such as CodeQL, but custom workflows never execute.

Has anyone encountered a situation where GitHub-managed workflows run successfully, but all custom workflows remain at 0 runs and manual dispatch returns HTTP 422? Could this be related to an account restriction, workflow approval requirement, or another GitHub Actions limitation?

Any guidance would be greatly appreciated. Thank you.

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Sina Salam 31,296 Reputation points Volunteer Moderator
    2026-07-27T14:05:14.8133333+00:00

    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, and workflow_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:

    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.

    Was this answer helpful?

    0 comments No comments

  2. Salamat Shah 740 Reputation points MVP
    2026-07-27T08:21:37.18+00:00

    Dear Hossain,

    The most likely cause is that the GitHub account or organization has a restriction preventing custom GitHub Actions from running. Azure Static Web Apps relies on GitHub Actions, so deployments will never start until Actions can execute.

    But try below:

    • Verify the account's current status with GitHub Support and confirm any previous restrictions have been fully removed.
    • Test with a different unrestricted GitHub user that has admin access to the repository.
    • Check the repository and organization Actions settings for any user-specific restrictions or pending workflow approvals.
    • Confirm the Azure Static Web Apps workflow contains valid on: push and/or workflow_dispatch triggers.
    • Once GitHub Actions can run normally, reconnect the Static Web App to recreate the webhook and deployment workflow.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.