Skip to content

AI rebase checkout fails when AI_REBASE_TOKEN is unavailable (#4451) #4461

Closed

Description

@zackees

Problem

The AI rebase workflow added by #4451 fails before running its rebase logic when AI_REBASE_TOKEN is empty or unavailable. This is separate from Control API code and the main CI gate.

Evidence and reproduction

Expected result

Configure the required credential for the trusted workflow, or explicitly skip the optional rebase workflow when it is not configured, rather than producing a red checkout job. Do not weaken the required CI gate or expose credential values.

Scope / handoff

No duplicate issue or open PR for this error was found. I cannot provide or invent the repository credential while implementing the Control API; this needs the workflow owner's configuration decision. No workflow files were changed as part of the Control API slices.

Activity

  1. KelboLive commented on Nov 11, 2026

    @KelboLive
    Contributor

    Claiming: #4461 — skip the ai-rebase job when AI_REBASE_TOKEN is unset. 1. Add ci/test_ai_rebase_token_guard.py (RED: pins that the root job using secrets.AI_REBASE_TOKEN carries a secrets.AI_REBASE_TOKEN != '' guard; fails on current yaml). 2. GREEN: fold that guard into ai-rebase.yaml job if: alongside the existing fork guard, so an unconfigured token skips the optional workflow instead of failing checkout. No other workflow or test-graph changes.

  2. github-actions commented on Nov 11, 2026

    @github-actions

    Claim bot: @KelboLive, this can't be claimed yet: it is not ready yet. Comment Claiming: investigation to research it, then /ready once it meets the definition of Ready.

  3. vpacher commented on Nov 13, 2026

    @vpacher
    Member

    /ready
    Coordinator triage. Scope: skip the ai-rebase job when AI_REBASE_TOKEN is not set. Do not change the CI gate.

    #4730 put secrets in the job-level if:. GitHub does not allow that context there (actionlint error), so that PR was closed.

    Acceptance:

    • No secrets context in any jobs.<id>.if. Expose whether the token is set through the job env, then guard the steps.
    • actionlint reports no errors.
    • A ci/ test reads the real workflow file and fails without the guard.

    The workflow is disabled now, so this is not urgent. Setting the secret stays with the maintainer.

  4. added
    ready
    P3
    size:S
    on Nov 13, 2026
  5. rdoupe commented on Nov 16, 2026

    @rdoupe
    Collaborator

    Claiming: #4461, skip the ai-rebase job's steps when AI_REBASE_TOKEN is not set, on branch ci/4461-ai-rebase-token-guard.

    1. RED: ci/test_ai_rebase_token_guard.py reads the real .github/workflows/ai-rebase.yaml and fails while any step uses the token with no guard, and while any jobs.<id>.if names secrets.
    2. GREEN: expose "token is set" through the job env and guard each step on it, with a notice step saying the run was skipped. actionlint clean. No change to the CI gate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3readysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions