Skip to content

Rebase automation cannot exchange uv-dev token from uv workflow #356

Closed

Description

@github-actions

The Rebase conflicted pull requests workflow fails after successfully rebasing an automation pull request because its push job cannot obtain the uv-dev token.

Failed run: https://github.com/astral-sh/uv/actions/runs/29856640237
Failed job: https://github.com/astral-sh/uv/actions/runs/29856640237/job/88723648297
Attempt: 1
Platform: Ubuntu (ubuntu-slim)
Job: Rebase pull request astral-sh/uv#20551 / Push rebased pull request astral-sh/uv#20551

Decisive error from Get uv-dev token:

token exchange request failed (403)

Checkout, artifact download, bundle import, and the preceding rebase job succeeded. Push rebased pull request was skipped only because token acquisition failed. The same token step failed in at least five consecutive earlier main-branch runs.

Merged PR astral-sh#20568 enabled the workflow in astral-sh/uv while continuing to request a write token for astral-sh/uv-dev. This establishes that the failure is in the default-branch automation path and is unrelated to the rebased source change. The 403 likely means this new workflow identity or requested grant is absent from the credential-broker policy, but the log does not confirm the broker-side reason.

Related: PR astral-sh#20579 fixed an analogous broker grant mismatch in the promotion workflow, but it does not cover conflicted-PR rebasing.

Activity

  1. added
    bug
    on Jul 21, 2026
  2. github-actions commented on Jul 21, 2026

    @github-actions
    Author
  3. github-actions commented on Jul 21, 2026

    @github-actions
    Author
  4. github-actions commented on Jul 21, 2026

    @github-actions
    Author
  5. github-actions commented on Jul 21, 2026

    @github-actions
    Author
  6. zaniebot commented on Jul 21, 2026

    @zaniebot
    Collaborator

    Fixed by adding the missing astral-sh/uv caller grant for .github/workflows/pull-request-conflicts.yml and its .github/workflows/rebase-conflicted-pull-request.yml writer. The broker policy is deployed, and run 29863518472 successfully acquired the scoped uv-dev token and pushed the rebased pull request.

  7. transferred this issue fromastral-sh/uvon Jul 21, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions