Skip to content

CI: Flag repositories sharing a Scorecard slot #400

Backlog

Description

Summary

Add a scheduled check to this repository that reads every repository's
OpenSSF Scorecard schedule and reports any two that share a slot, so a
repository created from a template does not quietly stay on the
template's minute.

Why

#277 gives each of 144 repositories its own minute on Sunday. Nothing
keeps it that way. A repository created from actions-template,
workflows-template or bots-template inherits the template's
- cron: line, and runs Scorecard in the same minute as the template
until someone changes it.

Findings

On main as of 2026-11-26:

  • The grid. Slots are on Sunday at minute-of-day 4 + 9k UTC for
    k from 0 to 159: 00:04, 00:13, and so on to 23:55. No slot falls on
    :00 or :30. 144 are assigned and 16 are spare; CI: Stagger the weekly Scorecard schedule across repositories #277 lists both.
  • Where the schedule lives. The - cron: line under schedule: in
    .github/workflows/openssf-scorecard.yaml. security-workflows is
    the exception: its schedule is in
    .github/workflows/openssf-scorecard-self.yaml, and its
    openssf-scorecard.yaml is the reusable lane, with no schedule.
  • What exists here to build on. repo-audit.yaml runs on Monday at
    10:00 UTC and posts to Slack when the profile README needs an update.
    repo-discovery.yaml is the reusable workflow the SARIF publishers
    call to list the organisation's repositories.

Required behaviour

  1. Once a week, for every public, non-archived, non-fork repository of
    the organisation the workflow runs under, read the Scorecard
    schedule from the default branch.
  2. Report each of these:
    • two or more repositories that share one cron value;
    • a Scorecard schedule that is not weekly on Sunday.
  3. For every repository in a shared slot except the one that has held
    it longest, name a free slot: the first unused grid slot, or once
    the grid is full any unused minute that is not :00 or :30. A
    template keeps its slot; the repository created from it moves.
  4. Write the findings to the job summary as a table, and post to Slack
    only when there is a finding, as repo-audit.yaml does for its own.
  5. Apply the owner gating CI: Run schedules and Slack alerts only in lfreleng-actions #293 specifies: the schedule and the Slack
    post run only under lfreleng-actions, and a fork can dispatch the
    check without posting.
  6. Keep the logic in a script with an offline test suite beside it. The
    workflow passes it the repository list and the file contents and
    does nothing clever itself.

To decide in the pull request

  • Whether this is a new job in repo-audit.yaml or a workflow of its
    own. Say which, and why.
  • How "held it longest" is judged without a registry. The commit date
    of the - cron: line is one answer; a small slot table checked into
    this repository is another.

Acceptance criteria

  • A run against the organisation as it stands after CI: Stagger the weekly Scorecard schedule across repositories #277 reports
    nothing.
  • The test suite covers a shared slot, a template and a repository
    created from it, a schedule off Sunday, a repository with no
    Scorecard workflow, a full grid, and security-workflows' file
    name.
  • A fork can dispatch the check, and it posts nothing to Slack.
  • prek run --files <changed files> passes, and
    zizmor --persona auditor .github/workflows/ reports nothing.
  • The README describes the check beside the other scheduled
    workflows.

Activity

  1. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 An AI agent has proposed a change for this issue: pull request #404 (head 4f9cf1e). The Copilot review of it has findings (4 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.

  2. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 1: an AI agent revised pull request #404 (head 98f093f). Round 1: fixed all four Copilot findings. I disputed none. - Inline comments: cron text inside a trailing YAML comment is now ignored. - Multi-line flow lists: these are now parsed in full. - Same-depth - cron:: these items are now read. - Personal-account forks: the workflow now uses the /users/ endpoint when the owner is a personal account. I amended each fix into the commit it belongs to: the parser fixes into the script commit, and the workflow fix (plus a README sentence) into the workflow commit. Each parser fix has a regression test. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. Checks: pytest, prek, zizmor and the aislop gate all pass. To pass the aislop file-size limit I kept the comment stripper compact. Nothing remains open except a fresh Copilot review of the new head.. The Copilot review of it has findings (2 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge. Still pending after 8 minutes and not waited for, so its result is unknown: pre-commit.ci - pr.

  3. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 2: an AI agent revised pull request #404 (head ce71fba). Round 2: fixed both Copilot findings in the schedule parser. I disputed none. - Inline trigger: on: {schedule: [{cron: ...}]} is now read. Before, the repository looked unscheduled and its minute looked free. - Weekday list: an unquoted block value such as - cron: 4 0 * * 0,1 keeps its commas, so it is now reported as not weekly on Sunday. Commas end a plain value only inside flow collections. I amended both fixes into the script commit, each with a regression test that fails on the old parser. I also joined a few statements to stay within aislop's file-size limit; behaviour is unchanged. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. Checks: pytest, prek (including gitlint), zizmor and the aislop gate all pass. No checks were failing on the head. What remains is a fresh Copilot review of the new head.. The Copilot review of it has findings (3 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.

  4. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 3: an AI agent revised pull request #404 (head 461c050). Round 3: fixed all three Copilot findings in the schedule parser. I disputed none. - Quoted keys: "schedule": and - 'cron': ... now match the same way plain keys do. - Block scalars: for cron: &gt;- or cron: |, the value is now read from the indented lines below the key. The finding keeps the key's line number for the blame lookup. - Sibling cron key: in a flow trigger, only the schedule's own value is scanned now, so a workflow_dispatch input named cron is no longer read as a schedule. Each fix has a regression test. All three tests fail on the old parser. With these fixes the script went past aislop's file-size limit. I moved the line-based schedule reader into .github/scripts/scorecard_schedule.py, which the script imports the same way fuzz_publish.py imports its sibling modules under python -I. I amended all of this into the script commit. The workflow commit is unchanged. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. No checks were failing on the head. Checks: pytest, basedpyright, prek (with gitlint on both commits), zizmor and the aislop gate all pass. Remaining: a fresh Copilot review of the new head.. The Copilot review of it has findings (2 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge. Still pending after 8 minutes and not waited for, so its result is unknown: pre-commit.ci - pr.

  5. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 4: an AI agent revised pull request #404 (head 62a88d2). Round 4: I fixed both Copilot findings and disputed none. I amended the fixes into the script commit, each with a regression test that fails on the old code. - Scope of schedule: the reader now reads only the schedule key of the top-level on: mapping, in block or flow style. Before, a dispatch input named schedule could hide the real trigger, and a YAML example inside a run: | script could add a cron. - Timezone offsets: blame dates are now compared as UTC instants instead of as text, so a commit date with an offset no longer picks the wrong repository to keep a shared slot. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. No checks were failing on the head. The pre-commit.ci - pr status was stale, so I ran the hooks myself with prek run --files over every changed file, and they passed. pytest, basedpyright, gitlint, zizmor and the aislop gate also pass. What remains is a fresh Copilot review of the new head.. The Copilot review of it has findings (1 unresolved review thread; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge. Still pending after 8 minutes and not waited for, so its result is unknown: pre-commit.ci - pr.

  6. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 5: an AI agent revised pull request #404 (head e46ba2e). Round 5: I fixed the one Copilot finding and disputed none. - Cadence, not spelling: each cron field is now expanded to the values it matches. 4 0 * 1-12 0, */1 and jan-dec now count as weekly on Sunday and share a slot with 4 0 * * 0. A day-of-month such as 1-31 is still reported, because cron ORs a restricted day-of-month with the weekday, so it runs daily. I amended the fix into the script commit, with regression tests. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. No checks were failing on the head. The pre-commit.ci - pr status was stale, so I ran the hooks myself with prek run --files over every changed file, and they passed. pytest, basedpyright, gitlint, zizmor and the aislop gate also pass. What remains is a fresh Copilot review of the new head.. The Copilot review of it has findings (2 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge. Still pending after 8 minutes and not waited for, so its result is unknown: pre-commit.ci - pr.

  7. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 6: an AI agent revised pull request #404 (head dddfdeb). Round 6: I fixed both Copilot findings in the schedule reader and disputed neither. - Multi-line quoted cron: cron: "4 0 followed by an indented * * 0" is now folded onto the key's line before it is read. Before, the reader took "4 0, which gave a false off-Sunday finding and left the minute looking free. - Anchors and tags: schedule: &amp;weekly, on: &amp;trigger and tags such as !!str are now skipped before the reader chooses block or flow parsing. Before, such a schedule read as unscheduled. I amended both fixes into the script commit, each with a regression test that fails on the old reader. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. No checks were failing. pre-commit.ci - pr was stale, so I ran prek run --files over the changed files myself, and it passed. pytest, basedpyright, gitlint, the aislop gate and zizmor also pass. What remains is a Copilot review of the new head.. The Copilot review of it has findings (2 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge. Still pending after 8 minutes and not waited for, so its result is unknown: pre-commit.ci - pr.

  8. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 7: an AI agent revised pull request #404 (head 3d807ae). Round 7: I fixed both Copilot findings in the schedule reader and disputed neither. - Double-quoted escapes: YAML escapes are now decoded, so cron: "4 0\u0020* * 0" reads as 4 0 * * 0. Before, it gave a false off-Sunday finding and missed the shared slot. A \ at the end of a line now joins it to the next line, and '' inside single quotes reads as one quote. - Multi-line plain values: cron: 4 0 followed by an indented * * 0 is now read whole, in block style, flow style, and a flow item inside a block sequence. The cron keeps its key's line number. I amended both fixes into the script commit, each with a regression test that fails on the old reader. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. No checks were failing. pre-commit.ci - pr was stale, so I ran prek run --files over the changed files myself, and it passed. pytest, basedpyright, gitlint, the aislop gate and zizmor also pass. What remains is a Copilot review of the new head.. The Copilot review of it has findings (1 unresolved review thread; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.

  9. lf-releng-code-monkey-bot commented on Nov 26, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 8: an AI agent revised pull request #404 (head ec9fb74). Round 8: I fixed the one Copilot finding and disputed none. - YAML aliases: before this fix, cron: *weekly with &amp;weekly on a scalar elsewhere in the file was read as the literal *weekly. That gave a false off-Sunday finding and hid a shared slot. An alias now resolves to its anchor's value, and the cron keeps its key's line. An aliased schedule: *name is now followed as well. I amended the fix into the script commit, with a regression test that fails on the old reader. The workflow commit is unchanged apart from being replayed. I did not rebase, because base_sha equals rebase_sha and the pull request is mergeable. No checks were failing on the head. pytest, prek, gitlint, the aislop gate and zizmor all pass. Remaining: a Copilot review of the new head.. The Copilot review of it has findings (3 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.

  10. lf-releng-code-monkey-bot commented on Nov 27, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 9: an AI agent revised pull request #404 (head 5fdfc83). Round 9: fixed all three Copilot findings about alias resolution in scorecard_schedule.py. I disputed none. - Quoted \"*weekly\": now read as a literal string, not an alias. Only a plain *name counts as an alias, and block-scalar text is always literal. - Anchors in block scalars: block-scalar text lines are skipped when finding anchors, so &amp;weekly in a DOCUMENTATION: | value no longer shadows the real anchor. - Multi-line anchored values: quoted values are folded after an anchor too, and a plain flow value is read up to its ,, } or ]. I amended the fixes into the script commit, with three regression tests that fail on the old reader. The workflow commit is unchanged. Running the reader over every workflow in this repository gives the same output as before. I did not rebase: base_sha equals rebase_sha and the pull request is mergeable. No checks were failing. pytest, basedpyright, gitlint, the aislop gate, zizmor and prek run --files all pass. What remains is a Copilot review of the new head. This is round 9 of 10.. The Copilot review of it has findings (2 unresolved review threads; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.

  11. lf-releng-code-monkey-bot commented on Nov 27, 2026

    @lf-releng-code-monkey-bot
    Contributor

    🐒 Round 10: an AI agent revised pull request #404 (head 108a603). Round 10: fixed both Copilot findings and disputed neither. - Files and blame from the same commit: the workflow now reads both Scorecard files and the tip's oid in one query, and fetches the blame from that oid. Before, a push between the two requests could pair a cron line with another version's blame. - # inside block scalars: comments are no longer stripped from block-scalar text, so cron: |- above 4 0 * * 0 # text is now reported instead of passing. There is a regression test for literal and folded scalars, and it fails on the old reader. I amended each fix into the commit it belongs to. I did not rebase, because base_sha equals rebase_sha and the pull request is mergeable. No checks were failing on the head. pytest, prek, gitlint, the aislop gate and zizmor all pass. This was round 10 of 10. Any further finding goes to a maintainer.. The Copilot review of it has findings (1 unresolved review thread; assessment: changes recommended). Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge. This was the round cap of 10 per antagonistic review round: the workflow selects this pull request no further until the next antagonistic review hands it back, and until then a human must take over.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions