Skip to content

CI: Stagger the weekly Scorecard schedule across repositories #277

Done

Description

Problem

Every OpenSSF Scorecard caller in the organisation runs on the same weekly schedule:

schedule:
  - cron: "50 4 * * 0"

130 repositories carry this line in .github/workflows/openssf-scorecard.yaml, so every Sunday about 130 workflow runs start within roughly a minute of each other. Each run calls the security-workflows Scorecard lane, which has three jobs (Validate Workflow Inputs, Scan, Link), so about 390 jobs are queued at once. On 2026-10-11 the scheduled runs in actions-template, cbom-action, tox-run-action, zizmor-scan-action and python-build-action all started between 04:57 and 04:58 UTC.

The burst can cause:

  • runner queueing and slow starts for everything else scheduled around that time;
  • simultaneous GitHub API traffic from every scan, using the same rate-limit windows;
  • about 130 simultaneous POSTs to api.scorecard.dev.

The three repository templates (actions-template, workflows-template, bots-template) carry the same line, so every new repository joins the burst.

The count is as it stood on 2026-10-15. On 2026-11-26 the organisation
has 144 scheduled Scorecard callers, all on 50 4 * * 0.

Decision (2026-11-26)

Every caller gets its own minute on Sunday, spread over the whole day,
so that no two start together.

  • The grid. Slots sit at minute-of-day 4 + 9k UTC, for k from 0
    to 159: 00:04, 00:13, and so on to 23:55. Nine minutes apart, 160
    slots. No slot falls on the hour, when GitHub delays scheduled
    workflows most, nor on the half hour.
  • The assignment. The 144 callers, sorted by name, are
    spread evenly over the grid, which leaves 16 spare slots
    across the day. The table below is the record: it is not recomputed
    when a repository is added, since that would move every other
    repository.
  • Still weekly, still Sunday. Only the hour and the minute change.
    A hash of the repository name, as first proposed here, would on
    average have left about seven pairs of repositories sharing a minute,
    even spread over all 24 hours.
  • A new repository takes a spare grid slot, and once those are gone
    any unused minute that is not :00 or :30. Add it to the table.

Spare slots (UTC, Sunday): 01:25, 02:55, 04:25, 05:55, 07:25, 08:55, 10:25, 11:55, 13:25, 14:55, 16:25, 17:55, 19:25, 20:55, 22:25, 23:55.

Work

Status at 00:50 UTC on 2026-11-27: 139 of the 142 callers left in
the table are merged and on their slot, each on its own minute. The
three still on 50 4 * * 0 are the templates, whose pull requests
await a maintainer's approval.

Not in scope, noted while counting

Three smaller groups also share a schedule: six codeql.yaml callers
on 27 3 * * 6, three codeql.yml on 40 4 * * 0, and two
security-scans.yaml on 31 3 * * 0. Those counts are from local
clones, which include three archived repositories. bots-template's
bot-cron.yaml has its schedule commented out, so bots created from
it no longer inherit one.

Slots

Sunday, UTC Cron Issue
00:04 4 0 * * 0 #399
00:13 13 0 * * 0 lfreleng-actions/actions-template#298 (template)
00:22 22 0 * * 0 lfreleng-actions/aislop-scan-action#133
00:31 31 0 * * 0 lfreleng-actions/apt-https-enforce-action#12
00:40 40 0 * * 0 lfreleng-actions/artifactory-publish-action#14
00:49 49 0 * * 0 lfreleng-actions/bots-template#73 (template)
00:58 58 0 * * 0 lfreleng-actions/build-artifact-action#48
01:07 7 1 * * 0 lfreleng-actions/build-metadata-action#225
01:16 16 1 * * 0 lfreleng-actions/cbom-action#45
01:34 34 1 * * 0 lfreleng-actions/central-publish-action#125
01:43 43 1 * * 0 lfreleng-actions/change-isolation-action#127
01:52 52 1 * * 0 lfreleng-actions/chartmuseum-action#223
02:01 1 2 * * 0 lfreleng-actions/checkout-gerrit-change-action#202
02:10 10 2 * * 0 lfreleng-actions/credential-load-action#179
02:19 19 2 * * 0 lfreleng-actions/csit-build-action#37
02:28 28 2 * * 0 lfreleng-actions/dependamerge#693
02:37 37 2 * * 0 lfreleng-actions/dependency-change-action#48
02:46 46 2 * * 0 lfreleng-actions/docker-build-images-action#53
03:04 4 3 * * 0 lfreleng-actions/docker-build-matrix-action#56
03:13 13 3 * * 0 lfreleng-actions/docker-promote-action#53
03:22 22 3 * * 0 lfreleng-actions/docker-release-detect-action#53
03:31 31 3 * * 0 lfreleng-actions/docker-save-images-action#171
03:40 40 3 * * 0 lfreleng-actions/docker-workflows#256
03:49 49 3 * * 0 lfreleng-actions/docs-workflows#126
03:58 58 3 * * 0 lfreleng-actions/draft-release-promote-action#182
04:07 7 4 * * 0 lfreleng-actions/file-grep-regex-action#193
04:16 16 4 * * 0 lfreleng-actions/file-sed-regex-action#190
04:34 34 4 * * 0 lfreleng-actions/generic-workflows#171
04:43 43 4 * * 0 lfreleng-actions/gerrit-change-info#201
04:52 52 4 * * 0 lfreleng-actions/gerrit-change-visible-action#28
05:01 1 5 * * 0 lfreleng-actions/gerrit-docker-k8s#417
05:10 10 5 * * 0 lfreleng-actions/gerrit-review-action#197
05:19 19 5 * * 0 lfreleng-actions/gha-workflow-linter#511
05:28 28 5 * * 0 lfreleng-actions/git-commit-message-action#161
05:37 37 5 * * 0 lfreleng-actions/git-configure-action#159
05:46 46 5 * * 0 lfreleng-actions/github-code-monkey-bot#254
06:04 4 6 * * 0 lfreleng-actions/github-code-review-bot#135
06:13 13 6 * * 0 lfreleng-actions/github-issues-triage-bot#66
06:22 22 6 * * 0 lfreleng-actions/github-list-releases-action#162
06:31 31 6 * * 0 lfreleng-actions/github-network-audit#184
06:40 40 6 * * 0 lfreleng-actions/github-security-report-action#335
06:49 49 6 * * 0 lfreleng-actions/github-statistics-action#81
06:58 58 6 * * 0 lfreleng-actions/github2gerrit-action#580
07:07 7 7 * * 0 lfreleng-actions/go-audit-action#81
07:16 16 7 * * 0 lfreleng-actions/go-build-action#90
07:34 34 7 * * 0 lfreleng-actions/go-httpbin-action#226
07:43 43 7 * * 0 lfreleng-actions/go-test-action#91
07:52 52 7 * * 0 lfreleng-actions/go-workflows#186
08:01 1 8 * * 0 lfreleng-actions/gradle-build-action#197
08:10 10 8 * * 0 lfreleng-actions/grype-scan-action#86
08:19 19 8 * * 0 lfreleng-actions/harden-runner-block-action#139
08:28 28 8 * * 0 lfreleng-actions/helm-chart-publish-action#217
08:37 37 8 * * 0 lfreleng-actions/http-api-tool-docker#500
08:46 46 8 * * 0 lfreleng-actions/hw-bom-javascript#445
09:04 4 9 * * 0 lfreleng-actions/info-yaml-validate-action#73
09:13 13 9 * * 0 lfreleng-actions/inject-issue-id-action#179
09:22 22 9 * * 0 lfreleng-actions/java-workflows#185
09:31 31 9 * * 0 lfreleng-actions/jjb-action#25
09:40 40 9 * * 0 lfreleng-actions/json-key-value-lookup-action#160
09:49 49 9 * * 0 lfreleng-actions/junit-test-report-action#72
09:58 58 9 * * 0 lfreleng-actions/lftools-uv#1147
10:07 7 10 * * 0 lfreleng-actions/list-splitter-action#42
10:16 16 10 * * 0 lfreleng-actions/log-publish-action#71
10:34 34 10 * * 0 lfreleng-actions/make-action#176
10:43 43 10 * * 0 lfreleng-actions/markdown-table-fixer#440
10:52 52 10 * * 0 lfreleng-actions/maven-build-action#217
11:01 1 11 * * 0 lfreleng-actions/maven-make-build-action#215
11:10 10 11 * * 0 lfreleng-actions/maven-snapshot-metadata-action#57
11:19 19 11 * * 0 lfreleng-actions/maven-stage-prep-action#135
11:28 28 11 * * 0 lfreleng-actions/maven-xml-settings-action#83
11:37 37 11 * * 0 lfreleng-actions/nexus-docker-login-action#163
11:46 46 11 * * 0 lfreleng-actions/nexus-publish-action#226
12:04 4 12 * * 0 lfreleng-actions/nexus-staging-action#123
12:13 13 12 * * 0 lfreleng-actions/node-audit-action#83
12:22 22 12 * * 0 lfreleng-actions/node-build-action#212
12:31 31 12 * * 0 lfreleng-actions/node-create-npmrc-action#102
12:40 40 12 * * 0 lfreleng-actions/node-publish-action#142
12:49 49 12 * * 0 lfreleng-actions/node-workflows#275
12:58 58 12 * * 0 lfreleng-actions/openssf-scorecard-summary-action#176
13:07 7 13 * * 0 lfreleng-actions/openstack-cron-action#157
13:16 16 13 * * 0 lfreleng-actions/packer-build-action#167
13:34 34 13 * * 0 lfreleng-actions/path-check-action#192
13:43 43 13 * * 0 lfreleng-actions/pinned-versions-action#229
13:52 52 13 * * 0 lfreleng-actions/project-reporting-tool#416
14:01 1 14 * * 0 lfreleng-actions/publishing-action-standard#11
14:10 10 14 * * 0 lfreleng-actions/pull-request-fixer#473
14:19 19 14 * * 0 lfreleng-actions/pypi-publish-action#243
14:28 28 14 * * 0 lfreleng-actions/pypi-version-check-action#206
14:37 37 14 * * 0 lfreleng-actions/python-audit-action#297
14:46 46 14 * * 0 lfreleng-actions/python-build-action#337
15:04 4 15 * * 0 lfreleng-actions/python-dependencies-update-action#209
15:13 13 15 * * 0 free: python-dynamic-version-action is being retired
15:22 22 15 * * 0 lfreleng-actions/python-nss-ng#323
15:31 31 15 * * 0 free: python-project-metadata-action is archived
15:40 40 15 * * 0 lfreleng-actions/python-project-name-action#226
15:49 49 15 * * 0 lfreleng-actions/python-project-tag-push-verify-action#200
15:58 58 15 * * 0 lfreleng-actions/python-project-version-action#221
16:07 7 16 * * 0 lfreleng-actions/python-project-version-patch-action#208
16:16 16 16 * * 0 lfreleng-actions/python-twine-check-action#232
16:34 34 16 * * 0 lfreleng-actions/python-workflows#213
16:43 43 16 * * 0 lfreleng-actions/release-assets-action#169
16:52 52 16 * * 0 lfreleng-actions/repository-content-action#174
17:01 1 17 * * 0 lfreleng-actions/repository-metadata-action#292
17:10 10 17 * * 0 lfreleng-actions/repository-tags-action#190
17:19 19 17 * * 0 lfreleng-actions/rtd-build-action#83
17:28 28 17 * * 0 lfreleng-actions/rtd-config-audit-action#73
17:37 37 17 * * 0 lfreleng-actions/rust-audit-action#47
17:46 46 17 * * 0 lfreleng-actions/rust-build-action#48
18:04 4 18 * * 0 lfreleng-actions/rust-crate-publish-action#62
18:13 13 18 * * 0 lfreleng-actions/rust-test-action#45
18:22 22 18 * * 0 lfreleng-actions/rust-workflows#83
18:31 31 18 * * 0 lfreleng-actions/sbom-action#106
18:40 40 18 * * 0 lfreleng-actions/security-workflows#225
18:49 49 18 * * 0 lfreleng-actions/semantic-tag-increment#437
18:58 58 18 * * 0 lfreleng-actions/shell-scripts#27
19:07 7 19 * * 0 lfreleng-actions/sigul-docker-k8s#181
19:16 16 19 * * 0 lfreleng-actions/sigul-sign-action#74
19:34 34 19 * * 0 lfreleng-actions/sonarqube-cloud-scan-action#263
19:43 43 19 * * 0 lfreleng-actions/sonatype-lifecycle-scan-action#228
19:52 52 19 * * 0 lfreleng-actions/source-clone-action#427
20:01 1 20 * * 0 lfreleng-actions/standalone-linting-action#236
20:10 10 20 * * 0 lfreleng-actions/supported-versions-action#71
20:19 19 20 * * 0 lfreleng-actions/tag-push-verify-action#183
20:28 28 20 * * 0 lfreleng-actions/tag-validate-action#449
20:37 37 20 * * 0 lfreleng-actions/tag-validate-calver-action#175
20:46 46 20 * * 0 lfreleng-actions/tag-validate-semantic-action#189
21:04 4 21 * * 0 lfreleng-actions/tailscale-openstack-bastion-action#172
21:13 13 21 * * 0 lfreleng-actions/test-docker-project#220
21:22 22 21 * * 0 lfreleng-actions/test-gradle-project#47
21:31 31 21 * * 0 lfreleng-actions/test-http-api-tool#122
21:40 40 21 * * 0 lfreleng-actions/test-makefile-helm-chart#139
21:49 49 21 * * 0 lfreleng-actions/test-maven-project#79
21:58 58 21 * * 0 lfreleng-actions/test-node-project#205
22:07 7 22 * * 0 lfreleng-actions/test-python-project#556
22:16 16 22 * * 0 lfreleng-actions/test-python-submodules#37
22:34 34 22 * * 0 lfreleng-actions/test-rust-project#55
22:43 43 22 * * 0 lfreleng-actions/tox-run-action#191
22:52 52 22 * * 0 lfreleng-actions/url-download-action#187
23:01 1 23 * * 0 lfreleng-actions/url-validity-action#174
23:10 10 23 * * 0 lfreleng-actions/vars-to-env-action#39
23:19 19 23 * * 0 lfreleng-actions/verify-release-schema-action#197
23:28 28 23 * * 0 lfreleng-actions/version-extract-action#217
23:37 37 23 * * 0 lfreleng-actions/workflows-template#136 (template)
23:46 46 23 * * 0 lfreleng-actions/zizmor-scan-action#149

Constraints

  • Keep the schedule weekly and on the default branch. Scorecard's Maintained check relies on a periodic run, and upstream supports only push and schedule on the default branch for published results.
  • Change only the cron value. The Scorecard API re-verifies the calling workflow before accepting published results, so the rest of the file's shape (triggers, permissions, no top-level env/defaults) must stay as it is.

Acceptance

  • No two Scorecard callers share a minute.
  • New repositories from the templates do not stay on a shared slot
    (CI: Flag repositories sharing a Scorecard slot #400).
  • A later scheduled run still publishes a Scorecard v5.6.0 result
    for each repository: no Unable to POST in the run log, and an
    api.scorecard.dev result dated after the run.

Activity

  1. 55 remaining items

  2. ModeSevenIndustrialSolutions commented on Nov 27, 2026

    @ModeSevenIndustrialSolutions
    MemberAuthor

    Closing: every caller the bot could work is on its own slot

    Checked at 00:50 UTC on 2026-11-27 against each default branch: 139
    repositories carry the slot the table assigns them, and no two share a
    minute.

    What is left has its own issue or pull request:

    One acceptance criterion cannot be checked yet: that a scheduled run on
    the new slots still publishes a Scorecard result. The first such runs
    are on Sunday 29 November. Reopen this if any of them logs
    Unable to POST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CI

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions