Repository navigation
fix(pr-unblock): treat a vendor action tag bump as a pin swap - #18605
Conversation
A Dependabot bump of an official vendor action from one version tag to another (actions/checkout@v7 -> @v8) escalated dependency-workflow-unpinned to a person even after a merge verdict, because pinSwapRefusal passed only full-SHA swaps. Vendor actions are referenced by major tag (owner decision, architecture docs/owner-decisions.md L351), so such a bump now counts as a pin swap. A vendor tag moved to a branch or SHA, any third-party or first-party ref off a full SHA, and any other workflow edit still escalate. Closes #18604 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7a8f846c80
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The vendor tag tests fed pinSwapRefusal hand-built patches whose hunk header always declared three lines. Each patch is now git's own unified diff between a before and after workflow file, from the first hunk header on, as GitHub's files listing serves it. Same cases. Refs: #18604 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fixture-git-isolation check requires every git call in a suite to see GIT_CONFIG_GLOBAL and GIT_CONFIG_NOSYSTEM, so the host's global and system config cannot change the diff. Refs: #18604 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review: PR #18605 at
|
|
claude-review reviewed Code review: vendor action tag bumps count as a pin swapThis change widens I found no correctness defect in the new logic:
I traced each new test by hand against the block parser (removed lines then added lines in one block, a context line ending the block). Each expected refusal string matches what the code returns. I did not run the tests. The PR's "120 pass" is the author's claim and I have not checked it. Closing issue #18604, acceptance criteria: all five are met in the code, and each case has a test that would fail if it broke:
The last criterion, that Finding (summary only: the line is unchanged in this PR)
Loosened checksThis loosens a check: kind 9, a check's own code changed so that it accepts more. Before,
The prompt had no Loosened checks would be marked: fail (bundled default; no wrapper lines); patterns: 0 Other notes
Verifier dropped 0 of 1 candidates. (No verifier subagent was run; I checked the single candidate directly against the source.) |
Closes #18604
Summary
Official vendor actions are referenced by major tag (spec #18556). The review-dependency verdict job's
pinSwapRefusalpassed only full-SHA swaps, so a Dependabot bump likeactions/checkout@v7to@v8escalateddependency-workflow-unpinnedto a person even after amergeverdict. This counts a vendor tag-to-tag bump as a pin swap, so it takes the same merge-marker path a SHA swap does.Fix
dependency-classify.mjs: newVENDOR_ACTION_OWNERS(actions,github,dependabot,microsoft,azure,anthropics,openai, matched in any case) and aTAGGED_USESshape (@vN,@vN.N,@vN.N.N). A changeduses:pair passes when both sides are full SHAs (as before) or both sides are version tags of a vendor action. Indent, key and action path must still match. Anything else returnsnot-a-full-sha-or-vendor-tag(wasnot-a-full-sha; no consumer reads the suffix).melodic-software/*ref off a full SHA; anyrun:edit or added or removed line.docs/conventions/pr-pipeline/README.mdandpr-run-activity.md, thedependency-workflow-unpinnedroute text inescalation-routes.json, and apr-pipelinepatch changelog fragment.main: ci: reference first-party actions at main and vendor actions by major tag #18531 (which moves the workflows to vendor tags) is still open. This change touches only the classifier, its tests and the rule's docs, so it does not depend on ci: reference first-party actions at main and vendor actions by major tag #18531.Verification
node --test --test-concurrency=4ondependency-classify.test.mjsandapply-dependency-verdict.test.mjs: 120 pass, 0 fail. The new tests cover: vendor tag to tag passes (all seven owners,Azureandazure, a trailing version comment); vendor tag to branch, to a pre-release tag, to a SHA, SHA to tag, and a path change escalate; third-party SHA to tag, third-party and first-party tag to tag, and the look-alike owneractions-evilescalate; a vendor bump mixed with a third-party SHA-to-tag change, an addedrun:line, or arun:edit escalates..github/scripts/pr-unblock/*.test.mjspluspr-merge/clear-escalations.test.mjs: everything passes exceptfeedback-dispatch.test.mjs"ownerAdoption reads the base adoption section...", which reads repository config (idleHours) and imports none of the files changed here.linton the two changed scripts: one warning, atdependency-classify.mjs:133, on a line this change does not touch.scripts/check-changelog-fragments.sh --checkand--check-required origin/main: clean.Loosened checks
pinSwapRefusal/dependency-workflow-unpinned. Before: a Dependabot change to a workflow or action file got the merge marker only when every changeduses:line moved from one full SHA to another. Now an official vendor action (owners above) moving from one version tag to another, same action path and indent, also passes.docs/owner-decisions.mdL351, 2026-11-23: no pin on official vendors, and pinned refs still "flow automatically through Dependabot and cooldowns". The person-hold on our own bot's vendor bump is a workflow gate, not a security control. Spec: Auto-merge Dependabot bumps of official vendor action tags like full-SHA pin swaps #18604.merge; commit provenance andpushRefusalare unchanged; third-party actions still need a full-SHA swap; the vendor list is exact-owner, so a look-alike owner does not match.Related
CI Status's trust-gate hold (.github/workflows/pr-require-checks.yml, theref_swapjq shape) still accepts only 40-hex ref swaps from Dependabot. A vendor tag bump in one of the lane workflows on the trust-gate path list will still wait for a person there.🤖 Generated with Claude Code