Skip to content

Let CI libraries and actions read a standards checkout (expand step) #18648

Description

@kyle-sexton

Context

The CI-only standards files synced into this repository (.github/standards/trusted-actors/trusted-actors.json, .github/standards/github-actions-conventions/vocabulary.json, .github/standards/dependabot-policy/policy.json) are to be read from a run-time checkout of melodic-software/standards main that records its SHA, and the synced copies deleted afterwards. Gating files change expand-then-contract: readers move first, copies go last.

This item is the expand step for the libraries and actions only. They learn to read a standards checkout when a caller names one, and keep reading the .base synced copy otherwise, so no existing caller changes behavior. No workflow passes the new input here; repointing workflows is a later item.

Owner decision

Brief acceptance Q2 of the standards-sync "track main" plan, answered by the owner in round 1: "yes; gating files (runner-policy, trusted-actors) change expand-then-contract". Q2 reads: "CI-only files (runner-policy, vocabulary, trusted-actors, dependabot-policy, ...) are read from a run-time checkout of standards main that records its SHA; every reader found ... is repointed". This item changes no gate's verdict and loosens nothing.

Proposed work

  1. .github/scripts/lib/trusted-actors.mjs: trustedListPath(env, fallback) returns $STANDARDS_DIR/components/trusted-actors/trusted-actors.json when STANDARDS_DIR is set, else fallback. Every reader that defaults to the .base copy (clear-escalations, enable-auto-merge, release-eval-hold, address-feedback, feedback-dispatch, fix-ci-context, dispatch, refine-event-dispatch, review-dependency, gate-source.mjs's same-tree read, the pr-verify replay probe) goes through it.
  2. resolve-config: a new standards-path input (env STANDARDS_DIR). When set, the vocabulary and trusted-actor list are read from components/github-actions-conventions/vocabulary.json and components/trusted-actors/trusted-actors.json under it, with the same realpath containment check as under base-path; when empty, both stay under base-path. read-status.mjs loadTrustedActors takes STANDARDS_DIR first.
  3. check-trusted-trigger, check-born-triaged, select-trusted-text: a new standards-path input; when set the list is read from it and trusted-actors-path is ignored.
  4. dependency-classify.mjs: policyPath(env, fallback) for the Dependabot policy (components/dependabot-policy/policy.json), used by dispatch.mjs and review-dependency.mjs.

Acceptance criteria

  • With STANDARDS_DIR unset or empty, every changed reader reads the same file it read before (no caller passes the new input in this change).
  • With STANDARDS_DIR set, the trusted-actor list, vocabulary and Dependabot policy are read from the standards checkout's components/ paths, and .base copies are not read.
  • resolve-config rejects a standards-path file whose real path leaves standards-path, as it does for base-path.
  • The three trusted-list actions and resolve-config document the standards-path input in action.yml and README.
  • Tests cover each case above; the tests of every changed file pass; scripts/sync-hold-floor.py --check and node scripts/sync-credential-legs.mjs --check pass.

Out of scope

Passing the input from workflows (one standards SHA per run through download-standards), the ci-status trust-list steps, plugin scripts on user machines, the azure-iac token broker, and deleting the synced copies or their hold paths.

Activity

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

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: CI libraries and composite actions that read the trusted-actor list, vocabulary and Dependabot policy (.github/scripts/lib, .github/actions/*, .github/scripts/pr-unblock), which every gate workflow runs. No workflow passes the new input in this change.
    Reversible: yes; revert the change. With STANDARDS_DIR unset the readers behave as before.
    Claims checked:

    1. The synced standards copies exist under .github/standards/: held, .github/standards/trusted-actors/trusted-actors.json, .github/standards/github-actions-conventions/vocabulary.json and .github/standards/dependabot-policy/policy.json. The issue's path .github/standards/trusted-actors/trusted-actors.json matches the first of these.
    2. .github/scripts/lib/trusted-actors.mjs exists and trustedListPath is not there yet: held, .github/scripts/lib/trusted-actors.mjs. A grep of .github finds no trustedListPath, policyPath or standards-path.
    3. resolve-config, read-status.mjs, gate-source.mjs and dependency-classify.mjs exist: held, at .github/actions/resolve-config/ and .github/scripts/pr-unblock/. The issue names no directory for dependency-classify.mjs or gate-source.mjs.
      Open questions: none
      The issue gives an exact design and done-when, and records the owner decision it relies on (Q2 of the standards-sync plan). The issue is a bounded expand step that changes no gate verdict. I found no open duplicate and no recently merged pull request that already covers it.

    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: open pull request #18649 is for it.

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

    No labels
    No labels

    Type

    Fields

    Work status

    deferred

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions