Skip to content

fix(ci): unblock Dependabot auto-merge (drop forbidden approval step)#323

Merged
keysersoft merged 1 commit into
mainfrom
keysersoft/fix-dependabot-automerge
Jun 13, 2026
Merged

fix(ci): unblock Dependabot auto-merge (drop forbidden approval step)#323
keysersoft merged 1 commit into
mainfrom
keysersoft/fix-dependabot-automerge

Conversation

@keysersoft

Copy link
Copy Markdown
Contributor

Problem

Every open Dependabot PR (#298#307) has a failing triage check. The auto-merge workflow's step ran:

gh pr review --approve "$PR_URL" ...
gh pr merge --auto --squash "$PR_URL"

The first line fails with "GitHub Actions is not permitted to approve pull requests" (a repo/org security setting). GitHub Actions bash steps run with set -e, so the step aborts before the merge command runs — nothing ever auto-merges.

Fix

main requires 0 approving reviews (verified via branch protection API), so the approval is unnecessary. Drop it; keep gh pr merge --auto --squash. Auto-merge then completes once the required Backend/Frontend checks pass.

Note on the current backlog

The 10 open Dependabot PRs are all npm patch/minor with green Backend+Frontend checks (only the broken triage job is red). They show BEHIND because main requires up-to-date branches (strict: true); Dependabot rebases keep them current going forward. This fix only re-runs on new PR events, so the existing 10 still need a nudge (rebase or manual merge) — handled separately.

…step

The triage job failed on every Dependabot PR at 'gh pr review --approve'
with 'GitHub Actions is not permitted to approve pull requests', and
because Actions bash steps run with -e, the following 'gh pr merge --auto'
never executed — so nothing was ever auto-merged.

main requires 0 approving reviews, so the approval was pointless anyway.
Remove it and keep 'gh pr merge --auto --squash'; auto-merge now fires
once the required Backend/Frontend checks pass.
@keysersoft keysersoft merged commit b747405 into main Jun 13, 2026
12 checks passed
@keysersoft keysersoft deleted the keysersoft/fix-dependabot-automerge branch June 13, 2026 14:29
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant