Skip to content

Dependabot's CI runs sit unstarted at action_required, so its PRs cannot go green without a manual click #730

Closed

Description

@thinkclay

With #724 merged, Dependabot dedupe finally works — it ran successfully on #721 and pushed a chore(deps): pnpm dedupe commit, which is exactly its contract. But the PR still cannot reach green, because the checks that would prove it never start:

$ gh api repos/Scaffald/SaaS/actions/runs/<id>
{ "event": "pull_request", "status": "completed", "conclusion": "action_required" }

action_required means GitHub is holding the run for a maintainer to approve. CI and Contract Tests are both held on #721 right now.

Why this is easy to misread

The run shows in the PR's check list as not-passing, and it looks exactly like the 2–3 second billing-block failures described in #375 — but it is a different thing with a different fix. Judging by duration does not separate them; both are effectively instant. The distinguishing signal is conclusion: action_required rather than failure.

That matters because the two have opposite responses: a billing block is waited out, an approval gate is clicked.

Effect

Six dependabot PRs — #713, #715, #716, #717, #718, #721 — have been open since 2026-09-07 and none can merge. The Dependabot automerge workflow cannot help either, since it waits on checks that never run.

So the dependency queue has two independent gates, and #724 only removed the first:

  1. the dedupe job errored before deduping — fixed in fix(ci): the dependabot dedupe job has never deduped anything — it cannot install #724
  2. CI never starts without a manual approval — this issue

Options

  1. Settings → Actions → General → "Approval for running fork pull request workflows from contributors" — the usual cause. Dependabot is treated as an outside contributor by some of these settings even though its branches are in-repo.
  2. Leave the gate and approve deliberately. Defensible: approving runs a dependency's code in CI, and that is a real supply-chain surface. But then it should be someone's routine, because right now it is nobody's and the PRs simply pile up.
  3. Move the workflows dependabot needs to pull_request_target, as dependabot-dedupe.yml and dependabot-automerge.yml already are. That bypasses the gate — and is why those two did run. Not recommended for ci.yml: it would run the PR's own code against a writable token, which is the thing the gate exists to prevent.

I have deliberately not approved the held runs. Which of these is right is a security posture call rather than a bug fix.

Acceptance

  • A dependabot PR reaches a real pass/fail conclusion without anyone clicking, or approving is an owned, documented step
  • The six open dependabot PRs are triaged
  • Whatever the choice, action_required is distinguished from CI: GitHub Actions jobs never start — account billing block #375's billing block somewhere findable, since they look identical on the PR page

Activity

  1. added
    bug
    on Sep 10, 2026
  2. thinkclay commented on Sep 11, 2026

    @thinkclay
    ContributorAuthor

    Confirmed, and narrowed to the setting behind it.

    $ gh api repos/Scaffald/SaaS/actions/permissions/fork-pr-contributor-approval
    {"approval_policy":"first_time_contributors"}
    

    "Require approval for first-time contributors" holds runs from any actor GitHub has not seen author a merged commit on this repo. Dependabot's earlier PRs here were merged by squash/cherry-pick under a human author (#700 is Clay Unicorn in git log), so as far as this check is concerned Dependabot has never contributed and every PR it opens is a first-timer. It is not the billing block from #375 — that is over; CI runs to completion on main now (#743's push: CI success, REST API Tests success, Main Guard success).

    Two ways out; both are account-level and not something an agent session should change:

    1. Approve the held runs. One click per run in the PR's checks tab, or from a terminal:

      gh run list --repo Scaffald/SaaS --status action_required --json databaseId -q '.[].databaseId' | xargs -I{} gh api -X POST repos/Scaffald/SaaS/actions/runs/{}/approve

      Once one Dependabot PR merges as Dependabot (i.e. not squashed under a human author — a plain merge or a squash that keeps the bot as author), later ones stop being first-timers.

    2. Change the policy to first_time_contributors_new_to_github (Settings → Actions → General → "Require approval for first-time contributors who are new to GitHub"), which still gates unknown fork PRs but lets Dependabot and known accounts run.

    Not clicked from here — approving spends Actions minutes against the 2,000/month cap and changes what runs by default, both of which are yours to decide. Once runs start, the queue is: #715 and #733 trivial; #735 (nx 22.7.8→.9, biome, playwright, tsx) low risk; #721 csv-parse 6→7 touches only two seed scripts on Node 22; #737 carries one member worth a look — react-refresh 0.14→0.18 — flagged on the PR. #713 (tiptap 2→3, a real migration across 13 files) is closed as not-a-Dependabot-job.

  3. added
    github_actions
    on Sep 11, 2026
  4. thinkclay commented on Sep 14, 2026

    @thinkclay
    ContributorAuthor

    Approved and merged, on the owner's go-ahead.

    Two things this cycle showed about the workflow, for whoever touches it next:

    1. Every dedupe push re-triggers a held run. pull_request_target on synchronize means the bot's own commit spawns a second CI + Contract Tests pair that needs approval again — two approvals per Dependabot PR, not one, while the policy stays first_time_contributors.
    2. The dedupe commit also makes the PR un-rebaseable by Dependabot. Any lockfile conflict with main after that point needs recreate, which throws the dedupe commit away and starts the cycle over.

    Both go away if the policy is changed to first_time_contributors_new_to_github (Settings → Actions → General), or if Dependabot ends up recorded as a merge author here — the squash of #721/#754 keeps dependabot[bot] as author, so the next Dependabot PR is the test of whether that alone is enough. Leaving this open until that PR arrives; if its runs start without a click, close it.

  5. thinkclay commented on Sep 15, 2026

    @thinkclay
    ContributorAuthor

    Status: the test condition has not arrived yet.

    No new Dependabot PR since #754 (2026-09-14), and gh run list --status action_required returns 0. So nothing has exercised whether the two merges that kept dependabot[bot] as commit author were enough to retire the first-timer gate.

    Still open for that reason. The next Dependabot PR decides it: if its runs start without a click, close this; if they are held again, the fix is switching the policy to first_time_contributors_new_to_github in Settings → Actions → General.

  6. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    Overtaken by events, closing with the evidence.

    The one acceptance item still worth having, "action_required is distinguished from #375's billing block somewhere findable", goes into .radium/ci-deployment.md in the next docs PR: judge a red check by its conclusion. action_required = a held run, click Approve; failure after 2–3 s with no logs = the billing block, wait it out.

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

    DXbuggithub_actions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions