Skip to content

Auto-merge Dependabot bumps of official vendor action tags like full-SHA pin swaps #18604

Description

@kyle-sexton

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

  1. Widen pinSwapRefusal so a change block that moves an official vendor action (owner actions, github, dependabot, microsoft, azure, anthropics or openai, 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 and pr-run-activity.md wording of the rule. (Done in fix(pr-unblock): treat a vendor action tag bump as a pin swap #18605.)
  2. Widen the trust-gate ref_swap jq in .github/workflows/pr-require-checks.yml the same way: a uses: 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 existing merge.dependabot.trusted-action-owners check and the lanes App verdict path still apply after it.
  3. Refresh the apply-dependency-verdict.mjs header 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, passes pinSwapRefusal, 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.mjs and apply-dependency-verdict.test.mjs pass.
  • 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.sh covers each trust-gate case above and passes.
  • The apply-dependency-verdict.mjs header no longer says only "full-SHA pin swap".

References

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

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions