Skip to content

Bot branch-sync heads leave required checks unapproved (#082) #1235

Description

@cursor

Summary

When github-actions[bot] updates an open PR branch via .github/workflows/pr-branch-sync.yml, the resulting head produces action_required runs for CI, SAST, and Secret Scan. Those required checks never report, so the PR stays blocked even when the merge tree is clean.

Tracked in the repo ledger as #082 (docs/outstanding-issues.md). This GitHub issue exists so the work is visible outside the ledger.

Evidence

Heads pushed by an agent or human still run normally.

Working mitigation (until fixed)

  1. Apply the skip-branch-sync label (stops the re-sync loop).
  2. Push an own-authored (non-bot) commit so required checks actually run.
  3. Merge before removing the label if further syncs would re-stall the head.

Opt-out labels already wired in the workflow: hold, do-not-merge, skip-branch-sync.

Fix options (pick one)

  1. Preferred: allow the sync bot identity in the repository Actions approval settings so bot-authored heads auto-run the required workflows.
  2. Alternative: change the sync to push with a token whose workflow runs auto-execute (PAT / GitHub App), rather than github-actions[bot].
  3. Fallback: drop or narrow auto-sync if the approval path cannot be fixed safely.

Success criteria

A bot-synced PR reaches green required checks with no manual / agent push.

Stop rules

  • Do not widen Actions approval for fork / untrusted actors.
  • Do not clear the block by bypassing required checks.

Related

  • Workflow: .github/workflows/pr-branch-sync.yml
  • Process note: docs/process-hardening.md § "Open PR branch sync"
  • Ledger: docs/outstanding-issues.md #082

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions