Skip to content

Fix Dependabot auto-merge#5115

Merged
adamw merged 1 commit intomasterfrom
fix/dependabot-auto-merge
Mar 11, 2026
Merged

Fix Dependabot auto-merge#5115
adamw merged 1 commit intomasterfrom
fix/dependabot-auto-merge

Conversation

@endrju19
Copy link
Copy Markdown
Contributor

Summary

  • Add dependabot[bot] to ci job condition so CI runs in pull_request context for Dependabot PRs
  • Replace secrets: inherit with explicit permissions on auto-merge-dependabot job (contents: write, pull-requests: write, workflows: write)

Root cause

Two issues preventing Dependabot auto-merge:

  1. CI skipped for Dependabot PRs — the ci job condition only allows push, external PRs, and softwaremill-ci. Dependabot PRs (same-repo, pull_request event) don't match any condition → ci SKIPPED → auto-merge-dependabot SKIPPED (depends on ci).

  2. Missing workflows permission — Dependabot PRs bump GitHub Actions versions in workflow files. Merging such PRs requires the workflows permission, which GITHUB_TOKEN doesn't have by default.

Currently 5 Dependabot PRs stuck (#4766 since Aug 2025, #5044, #5054, #5055, #5056).

- Add dependabot[bot] to ci job condition so CI runs for Dependabot PRs
  in pull_request context (previously skipped, blocking auto-merge)
- Grant workflow permissions on auto-merge-dependabot job so GITHUB_TOKEN
  can merge PRs that modify workflow files
@adamw adamw merged commit fcae5da into master Mar 11, 2026
@adamw adamw deleted the fix/dependabot-auto-merge branch March 11, 2026 08:48
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