Skip to content

ci: workflows read the trusted list and policies from a standards checkout at one commit #18717

Done
3 of 3 issues completed

Description

@kyle-sexton

Goal

Every workflow job in this repository that reads the trusted-actor list, the GitHub Actions vocabulary or the Dependabot policy reads it from a run-time checkout of melodic-software/standards (ci-workflows download-standards), with one standards commit per run where the job graph allows, instead of from the synced .base/.github/standards/ copy. This is the workflow half of the reader move. The P3 change (#18648, merged as #18649) taught the libraries and actions to accept a standards checkout. Nothing is deleted.

Out of scope: pr-require-checks.yml (the CI Status trust-list steps and runner-policy move in their own PRs), the synced pr-check-managed-files-hosted.yml, the runner-policy install in maintenance-audit-test-selection.yml (P1), the plugin scripts that run on user machines, and removing any copy, hold path or .github/standards/** entry (the contract PR).

Basis

Brief acceptance Q2 of the standards sync track (owner decision D1). Question: "CI-only policy and config data: track standards main through a runtime checkout and delete the copies fleet-wide?" Owner answer: "yes; gating files (runner-policy, trusted-actors) change expand-then-contract". Readers move first and copies are deleted last. This change only moves readers. It deletes nothing, removes no hold path and loosens nothing. The same people are on the list: the standards copy is the source the synced file comes from, and standards guards it with a code-owner review (standards .github/CODEOWNERS:40).

One standards commit per run follows download-standards/action.yml:7-9 in ci-workflows: "Pass the sha output to the other jobs of the run, as their ref ..., so the whole run reads one commit."

Done when

  • Each job in the 25 workflows listed in the PR that reads one of these files runs melodic-software/ci-workflows/.github/actions/download-standards@main (step id standards) right after its .base checkout, before any head code, under the same if: as that checkout.
  • In those jobs, every TRUSTED_ACTORS_PATH, TRUSTED_ACTORS, LIST and DEPENDABOT_POLICY env that named a .base/.github/standards/... file names the same file under ${{ steps.standards.outputs.path }}/components/. Every resolve-config, check-trusted-trigger, select-trusted-text, check-born-triaged and check-wip-cap call passes standards-path: ${{ steps.standards.outputs.path }} in place of trusted-actors-path. Every step that runs a script importing a list reader sets STANDARDS_DIR: ${{ steps.standards.outputs.path }}.
  • Each workflow's first reading job resolves standards main and exports standards-sha. A later job passes ref: ${{ needs.<job>.outputs.standards-sha }}, through intermediate jobs that forward it where needed. The gate jobs check-dispatcher-current (pr-unblock) and check-range (post-merge-test-mutation) resolve with checkout: 'false'. A job with no needs path to a resolving job, or one whose source job was skipped, reads main.
  • The credential legs are regenerated from their key jobs (scripts/credential-legs/*.mjs, pr-verify.mjs's TRUSTED_ACTORS literal included), and node scripts/sync-credential-legs.mjs --check passes.
  • post-merge-file-demotion-issues.yml checks the sender against the checkout's list instead of a contents-API read of this repository's copy. pr-merge.yml (candidate listing) and pr-run-activity-write.yml (reply-actors copy) read the checkout's list.
  • declare-test-scope.mjs, post-merge-demotion-alert/merge-path.mjs and report.mjs, branch-cleanup/cleanup.mjs, pr-refine/write-pass-plan.mjs and check-wip-cap.mjs pass STANDARDS_DIR to resolve-config. check-wip-cap has a standards-path input.
  • Outside the three files that are out of scope, no workflow reads .base/.github/standards/ for these three files. Sparse-checkout lists still name the copy until the contract PR.
  • The tests that pin these workflow lines expect the standards paths. actionlint and zizmor pass on the changed workflows. scripts/sync-hold-floor.py --check passes.

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    needs-triage
    on Nov 24, 2026
  2. github-actions commented on Nov 24, 2026

    @github-actions
    Contributor

    Size: Large
    Complexity: High
    Uncertainty: Knowable
    Flags: none
    Blocked by: none
    Blast radius: about 25 workflows, the credential-leg generators, several scripts and their tests; every pipeline job that reads the trusted-actor list or policies.
    Reversible: yes; revert the PR, since the synced copies are not deleted.
    Claims checked:

    1. The libraries and actions (resolve-config, check-trusted-trigger, select-trusted-text, check-born-triaged) accept standards-path: held, .github/actions/resolve-config/action.yml, .github/actions/check-trusted-trigger/action.yml.
    2. check-wip-cap has no standards-path input yet (the issue asks to add one): held, no match under .github/actions/check-wip-cap.
    3. scripts/sync-credential-legs.mjs exists: held, scripts/sync-credential-legs.mjs.
      Open questions: none
      I understood this as the workflow half of the move: it makes the jobs read the trusted list and policies from a run-time standards checkout at one commit per run, and it deletes nothing. The issue is exact and its design is already chosen. It touches many files, so it will probably need splitting into several changes. I found no duplicate. Run the ci-status runner-policy gate from the standards checkout #18713 and Read ci-status's trusted-actor list and lint configs from the run's standards commit #18709 cover the out-of-scope ci-status parts.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 24, 2026
  4. melodic-automation-lanes commented on Nov 24, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: Size large: the split into sub-issues at intake is pending (owner Q93).

  5. melodic-automation-lanes commented on Nov 24, 2026

    @melodic-automation-lanes
    Contributor

    Split at intake (owner Q93). This issue is Size Large, so its done-when is split into 3 sub-issues, each holding its task-list lines as written.

    Automated split by the lanes App. Admission waits on this issue while a sub-issue is open; work-unblock closes it as completed once every sub-issue is closed as completed by a merge or a listed human and its done-when is covered.

  6. added
    session-owned
    on Nov 24, 2026
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

    session-owned

    Type

    Fields

    Work status

    ready

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions