ions)
    * [ GitHub security features  ](/en/actions/security-guides/using-githubs-security-features-to-secure-your-use-of-github-actions)
    * [ Automatic token authentication  ](/en/actions/security-guides/automatic-token-authentication)

  * Creating actions 

    * [ About custom actions  ](/en/actions/creating-actions/about-custom-actions)
    * [ Create a Docker container action  ](/en/actions/creating-actions/creating-a-docker-container-action)
    * [ Create a JavaScript action  ](/en/actions/creating-actions/creating-a-javascript-action)
    * [ Create a composite action  ](/en/actions/creating-actions/creating-a-composite-action)
    * [ Metadata syntax  ](/en/actions/creating-actions/metadata-syntax-for-github-actions)
    * [ Dockerfile support  ](/en/actions/creating-actions/dockerfile-support-for-github-actions)
    * [ Set exit codes  ](/en/actions/creating-actions/setting-exit-codes-for-actions)
    * [ Publish in GitHub Marketplace  ](/en/actions/creating-actions/publishing-actions-in-github-marketplace)
    * [ Share from your private repository  ](/en/actions/creating-actions/sharing-actions-and-workflows-from-your-private-repository)
    * [ Share with your organization  ](/en/actions/creating-actions/sharing-actions-and-workflows-with-your-organization)
    * [ Release and maintain actions  ](/en/actions/creating-actions/releasing-and-maintaining-actions)
    * [ CLI setup action  ](/en/actions/creating-actions/developing-a-third-party-cli-action)

  * [ Guides for GitHub Actions  ](/en/actions/guides)

  * [ GitHub Actions ](/en/actions "GitHub Actions") / 
  * [ Using workflows ](/en/actions/using-workflows "Using workflows") / 
  * [ Disable & enable a workflow ](/en/actions/using-workflows/disabling-and-enabling-a-workflow "Disable & enable a workflow")

#  Disabling and enabling a workflow

You can disable and re-enable a workflow using the GitHub UI, the REST API, or
GitHub CLI.

##  Tool navigation

  * [ GitHub CLI  ](?tool=cli)
  * [ Web browser  ](?tool=webui)

##  In this article

  * Disabling a workflow 
  * Enabling a workflow 

Disabling a workflow allows you to stop a workflow from being triggered
without having to delete the file from the repo. You can easily re-enable the
workflow again on GitHub.

Temporarily disabling a workflow can be useful in many scenarios. These are a
few examples where disabling a workflow might be helpful:

  * A workflow error that produces too many or wrong requests, impacting external services negatively. 
  * A workflow that is not critical and is consuming too many minutes on your account. 
  * A workflow that sends requests to a service that is down. 
  * Workflows on a forked repository that aren't needed (for example, scheduled workflows). 

**Warning:** To prevent unnecessary workflow runs, scheduled workflows may be
disabled automatically. When a public repository is forked, scheduled
workflows are disabled by default. In a public repository, scheduled workflows
are automatically disabled when no repository activity has occurred in 60
days.

You can also disable and enable a workflow using the REST API. For more
information, see " [ REST API endpoints for workflows
](/en/rest/actions/workflows) ."

##  Disabling a workflow

  1. On GitHub.com, navigate to the main page of the repository. 

  2. Under your repository name, click  **Actions** . 

![Screenshot of the tabs for the "github/docs" repository. The "Actions" tab
is highlighted with an orange
outline.](/assets/cb-15465/images/help/repository/actions-tab-global-nav-
update.png)

  3. In the left sidebar, click the workflow you want to disable. 

  4. Click  to display a dropdown menu and click **Disable workflow** . 

![Screenshot of a workflow. The "Show workflow options" button, labeled with a
horizontal kebab icon, and the "Disable workflow" menu item are outlined in
dark orange.](/assets/cb-117573/images/help/repository/actions-disable-
workflow-2022.png)

To learn more about GitHub CLI, see