GitHub Actions Scheduled Workflows Auto-Disabled After 60 Days of Repo Inactivity

Why public GitHub repositories automatically suspend on.schedule cron workflows after 60 days without commits, and how to re-enable or prevent suspension.

GitHub Docs: Disabling and Enabling a Workflow (60-Day Inactivity Policy)GitHub REST API: POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable

Incident Symptom & Protocol Root Cause

Production Failure Symptom

A stable, hands-off scheduled GitHub Actions workflow (such as dependency vulnerability scanning, certificate renewal, link checking, or static feed rebuilds) stops running completely after two months without code changes, showing 'This scheduled workflow is disabled because there hasn't been activity in this repository for at least 60 days.'

Scheduler Parser & Clock Mechanics

To curb abandoned compute usage in public repositories, GitHub automatically disables all on.schedule triggers in any public repository once 60 consecutive days pass with zero commits or repository push activity (sending a warning email at day 53).

Broken vs Verified Configuration

BrokenUnmonitored Public Repo Cron Vulnerable to 60-Day Suspension
# Public repo with zero commits for >60 days:
# GitHub marks workflow state = "disabled_inactivity" and stops all cron runs!
name: Nightly TLS & Link Audit
on:
  schedule:
    - cron: "0 3 * * *"
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: ./scripts/check-endpoints.sh
Verified FixCLI Re-Enable + Verified Heartbeat / External Trigger Pattern
# 1. Re-enable an already suspended workflow immediately via GitHub CLI:
gh workflow list --all
gh workflow enable "Nightly TLS & Link Audit"

# 2. Or trigger via GitHub REST API from an external scheduler (Cloudflare Worker / systemd)
# workflow_dispatch is NEVER auto-disabled by the 60-day public repo rule:
curl -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer ${GITHUB_PAT}" \
  https://api.github.com/repos/ORG/REPO/actions/workflows/audit.yml/dispatches \
  -d '{"ref":"main"}'

Operational Deep Dive

GitHub's 60-day inactivity cutoff applies specifically to public repositories using on.schedule. Importantly, previous runs of the scheduled workflow itself do NOT count as repository activity unless they push a commit, nor do opened issues or stars reset the timer. Once day 60 arrives without git activity, the workflow transitions to state: disabled_inactivity in the Actions API.

Many blog posts recommend committing a dummy file every 30 days from inside a GitHub Action using GITHUB_TOKEN to keep the repo 'active'. Treat empty keepalive commits with caution: polluting git history solely to bypass abuse-prevention timers violates GitHub Terms of Service if done purely to mine free compute, and noisy automated commits clutter git log and trigger unnecessary downstream CI/CD builds.

For legitimate production maintenance on stable open-source or static repositories, two clean engineering solutions work permanently without history spam. First, enabling Dependabot security/version updates naturally produces legitimate dependency commits whenever upstream packages or Actions versions release. Second, replacing on.schedule with workflow_dispatch invoked by an external zero-cost cron trigger (such as a Cloudflare Worker Cron Trigger or monitoring webhook) completely sidesteps disabled_inactivity because API-dispatched runs are never suspended for repo age.

GitHub Actions 60-Day Inactivity Suspension Rules

Engine / CaseRuntime BehaviorProduction Remediation
Public repository with 0 pushes for 60 daysWorkflow transitions to disabled_inactivity; all on.schedule triggers halt after a 7-day warning email.Run gh workflow enable <workflow-id> or push a commit to reset, or trigger via workflow_dispatch.
Private / Enterprise repositoryBilled against account Actions minutes quota; not subject to the public-repo free-compute 60-day cutoff.Still monitor workflow failure notifications and runner minute quotas.
Forked repository with .github/workflowsScheduled workflows are disabled by default immediately upon forking to prevent surprise runs.Manually enable Actions in the fork's Actions tab if scheduled runs are intentionally desired.
External cron calling workflow_dispatch APIImmune to 60-day inactivity disabling and immune to :00 schedule queue drops.Store fine-grained Actions: Read/Write PAT in external scheduler and POST /dispatches.

Edge Cases & Engineering FAQs

Does pushing a commit automatically re-enable a disabled_inactivity workflow?

Pushing a commit resets the inactivity counter before day 60, and modifying the workflow file itself re-registers it, but once a workflow enters disabled_inactivity state, you should explicitly run gh workflow enable <name> (or click 'Enable workflow' in the Actions UI) and verify state == 'active' via gh api.

How can we monitor whether any org workflows silently entered disabled_inactivity?

Query GET /repos/{owner}/{repo}/actions/workflows across your organization and alert whenever any workflow object returns state: 'disabled_inactivity' instead of 'active'.

Why are scheduled workflows disabled when I fork an upstream project?

GitHub disables all workflows with on.schedule on newly created forks by default so contributors who fork a repo to submit a single pull request do not accidentally run upstream nightly deployment or scraping jobs.

Runtime Dead-Man's-Switch Verification

Heartbeat & Cron MonitoringBetter Stack →

Dead-man's-switch heartbeat checks that page on-call when a scheduled job skips a DST gap, stalls on a lock, or exits non-zero.