GitHub Code Scanning Pauses on Inactive Repositories

Daily Code Guide GitHub News

GitHub has changed how scheduled code scanning behaves for inactive repositories. Under default setup, weekly scans do not continue indefinitely based only on the fact that scanning was enabled. A qualifying push or pull request must first trigger a scan, and repositories without qualifying activity for 180 days can stop receiving weekly scheduled scans.

The change is available on GitHub Enterprise Cloud as of October 1, 2026. GitHub Enterprise Server 3.24 is identified as the target release, but the supplied documentation does not confirm its release date or whether a released build already includes the behavior.

What changed in scheduled code scanning

For repositories using code scanning default setup, weekly scheduled scans begin only after a push or pull request triggers a scan after default setup has been enabled. The initial scan performed when default setup is enabled does not start the weekly schedule.

The same activity rule applies to GitHub Code Quality in the supplied documentation. Enabling Code Quality runs an initial CodeQL scan, but a later push or pull request must trigger a scan before weekly scheduled scans begin.

Several scan types do not count as qualifying activity. These include:

  • The initial scan performed when default setup or Code Quality is enabled.
  • Scans triggered by configuration changes.
  • Scans triggered by language changes.
  • Scheduled scans themselves.

Activity from before default setup or Code Quality was enabled also does not count. In practical terms, enabling scanning on a repository that has not had a qualifying post-enablement push or pull request will not, by itself, establish an ongoing weekly schedule.

GitHub’s announcement says the activity state is shared between code scanning and GitHub Code Quality. This means activity relevant to the scheduling behavior is not treated as two completely separate states for those features.

Ad

How the 180-day activity rule works

For default setup, a repository is considered active when a push or pull request has triggered a default-setup scan within the previous 180 days. If that period passes without qualifying activity, weekly scheduled scans pause.

This is an activity rule for default setup, not a universal rule for every code-scanning configuration. The documentation does not establish that all advanced-setup workflows are governed by the same inactive-repository behavior.

Organizations can optionally keep scheduled scans running for inactive default-setup repositories. An organization owner can enable the relevant setting to run scheduled scans every 30 days for inactive repositories. The 30-day period is fixed and cannot be customized according to the supplied documentation.

This option gives security and platform teams a way to continue periodic analysis for repositories that are intentionally quiet but still need regular coverage. It also creates a deliberate administrative choice: organizations can accept the default pause behavior or enable the organization-level setting for continued scans.

Who is affected

The change is most relevant to repositories using code scanning default setup and to repositories using GitHub Code Quality. For default setup, GitHub Actions must be enabled, and the repository must be publicly visible or have GitHub Code Security enabled.

Teams managing many repositories should pay particular attention to repositories that are rarely changed, used for long-lived maintenance, or enabled through organization-wide security configuration. Those repositories may receive an initial scan and then appear configured correctly while still failing to establish the qualifying activity needed for weekly scans.

Advanced setup is different. It uses user-defined workflows, allowing teams to control workflow triggers and schedules. The supplied sources do not definitively state whether the announced inactive-repository rule applies to advanced setup or user-defined workflows. Administrators should therefore review advanced-setup workflow files and schedules separately rather than assuming that default-setup behavior applies.

Why the change matters for security operations

This is a scheduling-behavior change, not a vulnerability disclosure, exploit announcement, or security incident. Its practical effect is that a repository without recent qualifying development activity may no longer receive weekly default-setup scans.

That can reduce unexpected scanning activity for repositories that have been dormant. However, teams that rely on scheduled analysis as part of their security process should not assume that every enabled repository continues to receive weekly scans indefinitely. A scan history review is especially important after enabling default setup or applying configuration across a large repository fleet.

The documentation does not specify how quickly the first weekly scheduled scan runs after a qualifying push or pull request. It also does not definitively describe how failed or partial analyses affect the activity timestamp. Teams should avoid treating a push or pull request as an unconditional guarantee of a successful qualifying analysis under every repository, language, runner, or workflow condition.

How to check scan status

GitHub’s documentation for evaluating default setup describes the tool status page as a place to review scan history and operational status. Depending on the integrated tool, it can show when files were first scanned, when they were most recently scanned, upcoming scans, tool health, and available error messages.

For administrators auditing affected repositories, those details can help answer several practical questions:

  • Has a post-enablement push or pull request actually triggered a scan?
  • When was the most recent analysis completed or recorded?
  • Is another scheduled scan currently expected?
  • Does the tool status show an error that needs investigation?

The status page should be used alongside the repository’s configured scanning mode. A repository using advanced setup may have schedules and triggers defined in its workflow rather than following the default-setup activity model.

What you should do

  1. Audit default-setup repositories. Review scan history and upcoming scheduled scans, especially for repositories with little recent development activity.
  2. Trigger a qualifying scan after enablement. Ensure that a post-enablement push or pull request has triggered the expected scan before relying on weekly scheduling.
  3. Review inactive-repository policy. If inactive repositories must continue receiving scheduled default-setup scans, organization owners can enable the documented 30-day scanning option.
  4. Check tool status and errors. Use the tool status page to inspect recent scans, upcoming scans, tool health, and available error information.
  5. Inspect advanced-setup workflows separately. Confirm the schedules and triggers defined in user-managed workflows instead of assuming that the 180-day default-setup rule applies.

No configuration change is required solely to receive this behavior change. The important operational work is verifying which repositories have established qualifying activity and deciding whether inactive repositories should continue to be scanned every 30 days.

Availability and limitations

The behavior is available on GitHub Enterprise Cloud as of October 1, 2026. GitHub Enterprise Server 3.24 is named as the target release, but its release timing and the presence of this behavior in a released build are not confirmed by the supplied evidence.

The 180-day activity rule and optional 30-day inactive-repository setting are documented for default setup. They should not be presented as universal rules for advanced setup. The exact timing of the first scheduled scan, the treatment of failed analyses, and the applicability of the announcement to advanced setup remain undocumented in the supplied sources.

Sources

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Ad
Ad
Ad