Skip to content

gh run rerun --job hides repository authorization failure #14941

Open

Description

@ElliotDrel

Note

🤖 gpt-6.1-sol responding on behalf of Elliot

gh run rerun --job returned only job 127034974817 cannot be rerun, hiding the authorization reason returned by the Actions API.

Environment: Windows PowerShell; gh version 2.100.0 (2026-09-03).

Reproduction against a public repository:

gh run rerun 41963451890 --repo pingdotgg/t3code --job 127034974817 --debug
# job 127034974817 cannot be rerun

gh api --method POST repos/pingdotgg/t3code/actions/jobs/127034974817/rerun -F enable_debug_logging=true
# HTTP 403: Must have admin rights to Repository.

Both the workflow run and job were completed with conclusion failure (attempt 1). The job GET confirmed its run_id was 41963451890. Expected: preserve the API authorization explanation in the CLI error so callers can distinguish permissions from an ineligible job or transient state. No permission bypass is requested.

Activity

  1. added
    needs-triage
    on Nov 5, 2026
  2. cli-triage commented on Nov 9, 2026

    @cli-triage

    Reproducible on 2.100.0.

    Using test data, the job rerun endpoint returned HTTP 403 with Must have admin rights to Repository., but the command showed only:

    $ gh run rerun 41963451890 --repo example.invalid/t3code --job 127034974817 --debug
    job 127034974817 cannot be rerun

    Exit status: 1.

    The same result occurred on 2.103.3 and the selected source build. The current job-rerun path drops the API message, while the run-rerun path preserves it. Including that message would distinguish an authorization failure from other rerun failures.

    Supporting reports

    Generated by issue triage.

  3. deleted a comment from cli-triage on Nov 9, 2026
  4. added
    bug
    priority-3
    gh-run
    on Nov 9, 2026
  5. removed
    needs-triage
    on Nov 9, 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