You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Dependabot opens dependency PRs against main instead of dev #1341
Several Dependabot PRs open against main instead of dev, violating the SDLC (all work flows feature/* → dev → main). Because Dependabot recreates a PR when its base is changed, these can't be retargeted by hand — the fix must set target-branch: dev in .github/dependabot.yml for the affected ecosystems.
Context
Observed during PR review (2026-06-24): #1324 (vite, /tests/git-sync), #1298 (form-data, /src/mcp-server), and #1249 (vite, /src/frontend, since closed) all opened against main. Retargeting manually triggers a Dependabot recreate-loop, so the fix belongs in config. The /src/mcp-serverform-data bump is a security patch, so the misroute also delays a security fix from reaching dev.
Acceptance Criteria
.github/dependabot.yml sets target-branch: dev for every updates entry currently defaulting to main (at minimum /tests/git-sync, /src/mcp-server, /src/frontend)
A newly-opened Dependabot PR targets dev (verify on the next scheduled run or a manual trigger)
Open Dependabot PRs still pointing at main are closed so Dependabot reopens them against dev under the new config
No ecosystem is left defaulting to main
Technical Notes
Config: .github/dependabot.yml — target-branch: is per-updates entry.
Do not retarget existing PRs by hand — Dependabot recreates them. Fix the config and let it reopen.
Resolution: config already correct; residual is a GitHub limitation, not a config bug
Investigated against the repo + the open Dependabot PRs. The config fix this issue asks for is already in place, and the remaining symptom is by-design GitHub behavior target-branch can't change.
AC1 / AC4 — already satisfied..github/dependabot.yml sets target-branch: dev on all 6 ecosystem entries (github-actions, npm ×3, pip, docker), identical on main and dev (no diff). Added by #1243 / 8f3822f1 and live on main since v0.6.1 (2026-06-12). Newer version-update PRs correctly target dev (e.g. #1331, #1330, #1328).
The two PRs still on main are security updates, not config misroutes:
Dependabot security updates ignore target-branch and always open against the default branch (main) by GitHub design — exactly as the config comment already noted. Closing them (AC3) triggers the recreate loop this issue itself warns about, and they'd reopen against main. So AC3 isn't achievable for these two.
What to do with #1298 / #1324: let them merge to main as security fixes (they fix main's vulnerabilities); they reach dev on the next release back-merge, or cherry-pick the bump into a dev PR if urgent.
Doc follow-up:#1346 sharpens the dependabot.yml header comment so a security PR against main is clearly flagged as expected, not re-filed as a config bug.
Closing as resolved — the config bug was fixed by #1243 / v0.6.1; the residual is an accepted GitHub limitation.
Activity
dolho commentedon Jun 25, 2026
Resolution: config already correct; residual is a GitHub limitation, not a config bug
Investigated against the repo + the open Dependabot PRs. The config fix this issue asks for is already in place, and the remaining symptom is by-design GitHub behavior
target-branchcan't change.AC1 / AC4 — already satisfied.
.github/dependabot.ymlsetstarget-branch: devon all 6 ecosystem entries (github-actions, npm ×3, pip, docker), identical onmainanddev(no diff). Added by #1243 /8f3822f1and live onmainsince v0.6.1 (2026-06-12). Newer version-update PRs correctly targetdev(e.g. #1331, #1330, #1328).The two PRs still on
mainare security updates, not config misroutes:/dev/segment thattarget-branch: devinjects (compare chore(deps-dev): bump vite from 6.4.2 to 8.1.0 in /src/frontend #1331…/src/frontend/dev/vite-8.1.0).patch-and-minorgroup would never raise — only a security update would.Dependabot security updates ignore
target-branchand always open against the default branch (main) by GitHub design — exactly as the config comment already noted. Closing them (AC3) triggers the recreate loop this issue itself warns about, and they'd reopen againstmain. So AC3 isn't achievable for these two.What to do with #1298 / #1324: let them merge to
mainas security fixes (they fixmain's vulnerabilities); they reachdevon the next release back-merge, or cherry-pick the bump into a dev PR if urgent.Doc follow-up: #1346 sharpens the
dependabot.ymlheader comment so a security PR againstmainis clearly flagged as expected, not re-filed as a config bug.Closing as resolved — the config bug was fixed by #1243 / v0.6.1; the residual is an accepted GitHub limitation.
docs(dependabot): clarify that security updates always target main (#…
docs(releases): v0.8.0 commit-reconciled addendum — 8 shipped items m…