Skip to content

ci(security): restrict dependabot automerge to patch and minor updates#6

Merged
gildesmarais merged 2 commits intomainfrom
ci-only-non-major-auto
May 3, 2026
Merged

ci(security): restrict dependabot automerge to patch and minor updates#6
gildesmarais merged 2 commits intomainfrom
ci-only-non-major-auto

Conversation

@gildesmarais
Copy link
Copy Markdown
Member

@gildesmarais gildesmarais commented May 3, 2026

This pull request updates the automerge workflow for Dependabot to add more control over which pull requests are automatically merged. The workflow now fetches metadata about the update type and only enables automerge for patch and minor version updates.

Workflow improvements:

  • Added a step to fetch Dependabot metadata using the dependabot/fetch-metadata@v2 action, allowing the workflow to determine the type of update for each PR.
  • Restricted automerge to only patch and minor version updates by checking the update-type output from the metadata step, preventing major updates from being merged automatically.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Dependabot automerge GitHub Actions workflow to gate automatic merges based on the Dependabot update type, aiming to prevent major version bumps from being merged automatically.

Changes:

  • Added a dependabot/fetch-metadata@v2 step to determine Dependabot PR update type.
  • Restricted the automerge step to only run for semver patch and minor updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/dependabot-automerge.yml Outdated
Comment thread .github/workflows/dependabot-automerge.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@gildesmarais gildesmarais merged commit c93a0d3 into main May 3, 2026
9 checks passed
@gildesmarais gildesmarais deleted the ci-only-non-major-auto branch May 3, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants