Skip to content

ci: harden Dependabot auto-merge with PR diff allowlist #59

Open

Description

@millerjp

Summary

dependabot-automerge.yml trusts fetch-metadata's dependency-group output without inspecting the PR diff. A compromised Dependabot run could submit a patch-level bump whose diff also touches syncmap.go or a workflow.

Scope

Extend the auto-merge step to run gh pr diff and refuse to enable auto-merge if any path outside {go.mod, go.sum, .github/workflows/**} (for actions ecosystem) or {go.mod, go.sum} (for gomod) is modified.

Acceptance criteria

  1. Test PR with a crafted diff touching syncmap.go is NOT auto-merged.
  2. Legitimate go.mod/go.sum-only bumps are still auto-merged.

Source: devops.

Activity

  1. added this to the v1.0.1 milestone on Apr 21, 2026
  2. added
    securitySecurity-related change
    ci/cdCI/CD pipelines and release
    P1Important, not blocking
    on Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Important, not blockingci/cdCI/CD pipelines and releasesecuritySecurity-related change

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions