Repository navigation
Backlog
Labels
CICI and tests updates
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 + 9kUTC for
kfrom 0 to 159: 00:04, 00:13, and so on to 23:55. No slot falls on
:00or: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 underschedule:in
.github/workflows/openssf-scorecard.yaml.security-workflowsis
the exception: its schedule is in
.github/workflows/openssf-scorecard-self.yaml, and its
openssf-scorecard.yamlis the reusable lane, with no schedule. - What exists here to build on.
repo-audit.yamlruns on Monday at
10:00 UTC and posts to Slack when the profile README needs an update.
repo-discovery.yamlis the reusable workflow the SARIF publishers
call to list the organisation's repositories.
Required behaviour
- 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. - Report each of these:
- two or more repositories that share one cron value;
- a Scorecard schedule that is not weekly on Sunday.
- 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:00or:30. A
template keeps its slot; the repository created from it moves. - Write the findings to the job summary as a table, and post to Slack
only when there is a finding, asrepo-audit.yamldoes for its own. - Apply the owner gating CI: Run schedules and Slack alerts only in lfreleng-actions #293 specifies: the schedule and the Slack
post run only underlfreleng-actions, and a fork can dispatch the
check without posting. - 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.yamlor 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, andsecurity-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.
Metadata
Metadata
Assignees
Labels
CICI and tests updates
Activity
lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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.
lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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_shaequalsrebase_shaand 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.lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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,1keeps 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_shaequalsrebase_shaand 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.lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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: forcron: >-orcron: |, the value is now read from the indented lines below the key. The finding keeps the key's line number for the blame lookup. - Siblingcronkey: in a flow trigger, only the schedule's own value is scanned now, so aworkflow_dispatchinput namedcronis 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 wayfuzz_publish.pyimports its sibling modules underpython -I. I amended all of this into the script commit. The workflow commit is unchanged. I did not rebase:base_shaequalsrebase_shaand 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.lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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 theschedulekey of the top-levelon:mapping, in block or flow style. Before, a dispatch input namedschedulecould hide the real trigger, and a YAML example inside arun: |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_shaequalsrebase_shaand the pull request is mergeable. No checks were failing on the head. Thepre-commit.ci - prstatus was stale, so I ran the hooks myself withprek run --filesover 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.lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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,*/1andjan-decnow count as weekly on Sunday and share a slot with4 0 * * 0. A day-of-month such as1-31is 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_shaequalsrebase_shaand the pull request is mergeable. No checks were failing on the head. Thepre-commit.ci - prstatus was stale, so I ran the hooks myself withprek run --filesover 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.lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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 0followed 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: &weekly,on: &triggerand tags such as!!strare 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_shaequalsrebase_shaand the pull request is mergeable. No checks were failing.pre-commit.ci - prwas stale, so I ranprek run --filesover 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.lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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 as4 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 0followed by an indented* * 0is 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_shaequalsrebase_shaand the pull request is mergeable. No checks were failing.pre-commit.ci - prwas stale, so I ranprek run --filesover 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.lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 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: *weeklywith&weeklyon 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 aliasedschedule: *nameis 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, becausebase_shaequalsrebase_shaand 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.lf-releng-code-monkey-bot commentedon Nov 27, 2026
🐒 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*namecounts as an alias, and block-scalar text is always literal. - Anchors in block scalars: block-scalar text lines are skipped when finding anchors, so&weeklyin aDOCUMENTATION: |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_shaequalsrebase_shaand the pull request is mergeable. No checks were failing. pytest, basedpyright, gitlint, the aislop gate, zizmor andprek run --filesall 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.lf-releng-code-monkey-bot commentedon Nov 27, 2026
🐒 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
oidin one query, and fetches the blame from thatoid. 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, socron: |-above4 0 * * 0 # textis 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, becausebase_shaequalsrebase_shaand 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.