Skip to content

workflow-hotfix-redirector.yml cherry-picks an unsigned commit onto hotfixes, blocking merge #257

Closed

Description

@Shinrai

What's happening

workflow-hotfix-redirector.yml@v4 cherry-picks a Dependabot (or hotfix/*/security/*) commit onto hotfixes and pushes the redirected PR branch, but the resulting commit is not GPG-signed. Every CLDMV branch requires signed commits, so the redirected PR is stuck at mergeable_state: blocked even though all CI checks pass and the PR is approved — there is no failing check that names the actual cause.

Evidence

CLDMV/holdmytask#24 (auto-created by the redirector from #23):

  • All 12 check runs: success or skipped — nothing failing.
  • Approved by a MEMBER.
  • Head is current with hotfixes (no rebase needed).
  • mergeable_state: "blocked" anyway.

Comparing the raw commit objects explains why:

Root cause

.github/workflows/hotfix-redirector.yml (the thin per-repo caller) only maps BOT_APP_CLIENT_ID / BOT_APP_PRIVATE_KEY into the reusable workflow — the GitHub App identity/auth secrets. It does not pass any GPG signing secrets (the CLDMV_BOT_* signing key pair that other bot-push workflows — lint/format autofix, coverage-badge push — use). The reusable workflow does a local git cherry-pick + git push using only the App token, so the commit is authenticated as the bot but never actually signed.

Suggested fix

Either:

  1. Wire the CLDMV_BOT_* GPG signing secrets into workflow-hotfix-redirector.yml's cherry-pick step (same pattern already used by the lint/format-autofix and coverage-badge-push jobs), so the cherry-picked commit is signed before push, or
  2. Perform the cherry-pick via the GitHub Contents/Git Data API (as the release-commit path does) instead of a local git cherry-pick + push, so the commit is signed automatically as GitHub <[email protected]>.

Impact

Every redirected hotfix/security PR across every consumer repo on the v4 flow is affected — the PR looks fully green (checks pass, review approved) but silently cannot be merged, with no check or status explaining why. This is easy to mistake for a stuck bot or a ruleset misconfiguration on the consumer repo rather than a gap in the reusable workflow itself.

Activity

  1. added
    type: bug
    priority: high
    type: ci
    on Sep 3, 2026
  2. added theissue type on Sep 3, 2026
  3. cldmv-bot commented on Sep 3, 2026

    @cldmv-bot
    Contributor

    Closed in v4.25.1 — resolved by #259.

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

    priority: hightype: bugtype: ci

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions