{{ message }}
Merged
Conversation
Adds a GitHub Actions workflow that automatically enables auto-merge (squash) on Dependabot PRs for patch and minor version updates. GitHub's auto-merge will wait for all required status checks to pass before merging, so major/breaking updates still require manual review. https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
The actor name string could theoretically be spoofed. The user ID 49699333 is the immutable numeric ID for the dependabot[bot] GitHub App and cannot be forged by other users. https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
Remove the patch/minor restriction and the now-unused fetch-metadata step so all Dependabot PRs are auto-merged (major included). https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
Rewrite to closely follow the recommended pattern from: https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request - Use user.login check with repository guard - Pin fetch-metadata action to commit SHA - Keep squash merge strategy and auto-merge all update types https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
Contributor
The workflow was appearing as a (skipped) build step on every PR. Switching to pull_request_target prevents it from showing up at all on non-Dependabot PRs. https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
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.

Lately we've received a ton of dependabot PRs and I'd rather automatically merge if all builds pass. Dependabot doesn't have a config option for this, so instead I'm following the GitHub docs recommendation to have a GitHub action on pull request creation, to automerge Dependabot PRs only https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
Summary