Skip to content

gh run rerun --failed stops on workflow metadata 404 for organization-required runs #15054

Open

Description

@henrymodisett

Describe the bug

On GitHub.com with GitHub CLI 2.104.0 (2026-11-12), gh run rerun RUN_ID --failed -R ORG/CONSUMER fails for a completed run of a workflow required by an organization ruleset. The workflow is defined in another repository.

failed to get run: HTTP 404: Not Found (https://api.github.com/repos/ORG/CONSUMER/actions/workflows/WORKFLOW_ID)

Steps to reproduce

  1. Require a workflow from a shared repository in an organization ruleset that applies to a consumer repository.
  2. Let that workflow run and fail in the consumer repository. Obtain its run ID from the check URL.
  3. With repository Actions write permission, run gh run rerun RUN_ID --failed -R ORG/CONSUMER.

Expected vs. actual behavior

Expected: GitHub receives the failed-jobs rerun request for that run. Actual: the CLI stops at the consumer repository's workflow metadata lookup. The direct REST call with the same authenticated CLI succeeded and created a new attempt on the same run:

gh api -X POST repos/ORG/CONSUMER/actions/runs/RUN_ID/rerun-failed-jobs

The run-level rerun code calls GetRun, which requires the workflow metadata lookup. The rerun request itself only uses the run ID. A run lookup that skips workflow-name enrichment for this command would preserve access to the rerun endpoint.

Related to #9228 and #14822. Filing separately as requested in the rerun follow-up on #9228. This occurrence returned 404 from /actions/workflows/WORKFLOW_ID. Repository, workflow, and run IDs are redacted.

Activity

  1. cli-triage commented on Nov 13, 2026

    @cli-triage

    Reproducible on 2.104.0.

    Using test data for a completed workflow run:

    $ gh run rerun 123 --failed -R example.invalid/consumer
    failed to get run: HTTP 404: Not Found (https://api.github.com/repos/example.invalid/consumer/actions/workflows/159038)

    Exit status: 1.

    The same result occurs on the latest release and current source. The run request succeeds, but the CLI then requires workflow metadata and never sends the failed-jobs rerun request. The direct gh api -X POST repos/ORG/CONSUMER/actions/runs/RUN_ID/rerun-failed-jobs call is the available workaround.

    Supporting reports

    Generated by issue triage.

  2. added
    bug
    gh-run
    priority-3
    on Nov 13, 2026
  3. removed
    needs-triage
    on Nov 13, 2026
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

    buggh-runpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions