Repository navigation
Description
Context
Official vendor actions are referenced by major tag, not pinned (spec #18556, PR #18531). The review-dependency verdict job's pinSwapRefusal (.github/scripts/pr-unblock/dependency-classify.mjs) passes a workflow or action file change only when every changed uses: line moves from one full SHA to another. So a Dependabot bump such as actions/checkout@v7 to @v8 escalates dependency-workflow-unpinned and waits for a person, even after the dependency review chose merge. CI Status's trust-gate hold in .github/workflows/pr-require-checks.yml (the ref_swap jq) likewise accepts only 40-hex ref swaps, so the same bump in a workflow on the trust-gate path list (the lane workflows) waits for a person there too. That person-hold on our own bot's vendor bump is a workflow gate, not a security control: the owner wants vendor refs moved automatically by Dependabot with cooldowns.
Owner decision
Row "Action pinning (D3)" in architecture docs/owner-decisions.md L351, 2026-11-23. Owner, verbatim: "make sure that if anything's pinned, it's 100% necessary. If it's owned by us, it should not be pinned. If it involves an untrusted third-party library ... it should be pinned, as long as those still flow automatically through Dependabot and cooldowns ... official vendor like Microsoft or Anthropic or OpenAI ... those I don't want pinned"
The row names the official vendors as actions/*, github/*, dependabot/*, Microsoft/Azure, Anthropic and OpenAI, and decides: "no pin on melodic-software/* or official vendors (actions/*, github/*, dependabot/*, Microsoft/Azure, Anthropic, OpenAI); third-party actions stay hash-pinned, enforced by zizmor unpinned-uses and moved by Dependabot with cooldowns."
Both changes below loosen a check (the verdict job's pin-swap rule and CI Status's trust-gate hold) only as far as this decision asks.
Proposed work
- Widen
pinSwapRefusalso a change block that moves an official vendor action (owneractions,github,dependabot,microsoft,azure,anthropicsoropenai, any case) from one version tag (vN,vN.N,vN.N.N) to another, keeping its indent and action path, counts as a pin swap. Everything else keeps escalating. Update the pr-pipeline README andpr-run-activity.mdwording of the rule. (Done in fix(pr-unblock): treat a vendor action tag bump as a pin swap #18605.) - Widen the trust-gate
ref_swapjq in.github/workflows/pr-require-checks.ymlthe same way: auses:line of an official vendor action (same owner list and tag shape as item 1) may move from one version tag to another with the same action path, once the new tag exists in the action's repository (git ls-remote --tags). A SHA never pairs with a tag. The existingmerge.dependabot.trusted-action-ownerscheck and the lanes App verdict path still apply after it. - Refresh the
apply-dependency-verdict.mjsheader comment (and its log line) that says "full-SHA pin swap" so it also names vendor tag swaps.
Acceptance criteria
- A Dependabot change whose workflow diff only moves official vendor
uses:refs from one version tag to another, with the same action path, passespinSwapRefusal, the same as a full-SHA swap. - A vendor tag moved to a branch, a non-version tag or a SHA, or a vendor SHA moved to a tag, still escalates.
- A third-party or
melodic-software/*action moved off a full SHA still escalates. - A vendor tag bump beside any other change (a third-party tag change, a
run:edit, an added line) still escalates. - Tests cover each case above;
dependency-classify.test.mjsandapply-dependency-verdict.test.mjspass. -
CI Status's trust-gate hold passes a Dependabot PR whose only change is an official vendor action's tag-to-tag bump (same action path, new tag present in the repository), the same as a full-SHA swap to a tagged commit. - The trust-gate hold still holds a first-party or third-party tag swap, a tag moved to a branch, a non-version tag or a SHA, a SHA moved to a tag, a changed action path, and a tag the repository lacks.
-
scripts/ci-review-lanes.test.shcovers each trust-gate case above and passes. - The
apply-dependency-verdict.mjsheader no longer says only "full-SHA pin swap".
References
- Spec Reference first-party actions at main and official vendor actions by major tag #18556, PR ci: reference first-party actions at main and vendor actions by major tag #18531 (vendor refs moved to major tags).
- PR fix(pr-unblock): treat a vendor action tag bump as a pin swap #18605 (items 1 and the first five criteria).
Activity
test(pr-unblock): generate pin-swap patches with git diff
test(pr-unblock): isolate the pin-swap git diff from host config