Dependabot policy workflow
The Dependabot policy gate lives in .github/workflows/dependabot-policy.yml. It requests squash auto-merge for eligible Dependabot patch updates. The Dependabot configuration controls which update pull requests are opened.
Which pull requests qualify
The workflow listens for opened, updated, or reopened pull requests through pull_request_target. The job checks that both the triggering actor and the pull request author are dependabot[bot]. It reads the update metadata and requests auto-merge only when the reported update type is version-update:semver-patch. A minor update skips that step.
What to review in your own repository
Auto-merge and squash merging must be enabled in the destination repository. GitHub still applies required reviews and status checks defined by your branch rules. If a patch does not merge, check the workflow result in Actions and the requirements listed in the pull request's merge box.
This workflow has write permissions and uses pull_request_target. Keep changes to it focused on trusted metadata and GitHub API actions. Run code from the proposed change in the separate CI Pipeline workflow.
GitHub auto-merge guidance ยท GitHub's guidance on Dependabot automation