ci(deps): allow trusted-namespace majors in auto-merge#17
Merged
Conversation
Adds a policy step that admits major-version Dependabot PRs only when every listed dependency belongs to dependabot/, actions/, or smartwatermelon/ namespaces. Patch/minor remain always-allowed. The major decision is computed from previous-version vs new-version rather than trusting steps.metadata.outputs.update-type. On 2026-04-28, fetch-metadata@v2 mislabeled a 2.0.1 -> 3.0.0 reusable-workflow bump as semver-patch (verified in run logs), allowing the existing patch-only gate to admit a major. The new step compares the leading integer of each version string and treats any difference as major. Fails closed when dependency-names is empty on a major bump (adversarial-review catch — without the dep list, the namespace allowlist cannot be applied, so we cannot grant auto-merge). Includes the docs/plans/ rollout plan and unit-tested policy logic. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 28, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dependabot-auto-merge.ymlthat admits major-version Dependabot PRs only when every dep independency-namesis independabot/,actions/, orsmartwatermelon/.previous-version/new-versiondirectly, notupdate-type. On 2026-04-28fetch-metadata@v2mislabeled a2.0.1 → 3.0.0reusable-workflow bump assemver-patch, so we trust the version math instead of the label.dependency-namesfor a major bump (adversarial-review catch).Plan
docs/plans/2026-04-28-dependabot-auto-merge-c2.md
Test plan
smartwatermelon/dev-env#16(dependabot/fetch-metadata 2 → 3); confirm it auto-merges. This validates the trusted-major path end-to-end before Phase 4 propagation to the other 15 repos.🤖 Generated with Claude Code