ci: add Dependabot auto-merge workflow - #37
Merged
Merged
Conversation
Automatically merges Dependabot PRs for patch and minor version bumps once all required CI checks pass. Major version bumps are excluded and require manual review. Uses dependabot/fetch-metadata to read the update type and gh pr merge --auto to queue the merge — GitHub only executes the merge once every required status check is green. Also enabled "allow_auto_merge" on the repository via the GitHub API (required for gh pr merge --auto to work). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PhSFmsQDhrUoFR7F8EHkD5
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
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
.github/workflows/dependabot-auto-merge.yml: when Dependabot opens a PR, this workflow queues auto-merge viagh pr merge --autoonce the PR passes all required CI checks. Only patch and minor version bumps are auto-merged; major version bumps are skipped and require manual review.gh pr merge --autoto function).How it works
dependabot/fetch-metadata, and callsgh pr merge --auto --merge.Major version bumps (e.g. a base image major release) still require manual merge — breaking changes warrant a review.
On Copilot Autofix
Copilot Autofix for CodeQL is already active on this public repo. During PR review, if CodeQL finds an alert, GitHub automatically shows a Copilot-generated fix suggestion inline — no setup needed. If you accept the suggestion, it creates a commit on the PR branch. For alerts on the default branch (post-merge), clicking "Fix with Copilot" on the Security → Code scanning alerts page still requires one click; GitHub has no API to trigger fix generation headlessly.
Test plan
🤖 Generated with Claude Code
https://claude.ai/code/session_01PhSFmsQDhrUoFR7F8EHkD5