Skip to content

Pull request label workflow cannot exchange its repository token #499

Open

Description

@astral-automations-bot

The new Pull request labels workflow cannot apply its recommendation because its repository-token exchange is rejected.

Failed run: https://github.com/astral-sh/uv-dev/actions/runs/30675694189
Failed job: https://github.com/astral-sh/uv-dev/actions/runs/30675694189/job/91302461637
Workflow: Pull request labels
Job: apply
Step: Get repository label token
Platform: Ubuntu (ubuntu-slim)
Attempt: 1

Decisive error:

token exchange request failed (403)

This is the only independent failure. Apply recommended labels was skipped as a consequence; the labels and report jobs succeeded.

The pull request merely triggered the failure and does not modify the workflow or STS policy. Two earlier workflow_dispatch runs on main, https://github.com/astral-sh/uv-dev/actions/runs/30664410730 and https://github.com/astral-sh/uv-dev/actions/runs/30664396308, also failed.

Repository configuration shows that .github/workflows/pull-request-labels.yml requests issues: write and .github/ost-simple-sts.json contains a matching uv-dev grant for pull_request and workflow_dispatch events. This establishes a mismatch between the checked-in grant and broker behavior. The log does not expose whether the deployed policy is stale or whether claim matching rejects the request.

astral-sh#20869 introduced this automation. #364 tracks the same exchange error for a different workflow whose grant was missing. #356 is a fixed historical case where deploying missing grants resolved the exchange error.

Activity

  1. added
    bug
    on Aug 1, 2026
  2. astral-automations-bot commented on Aug 13, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/31712598963

    Run https://github.com/astral-sh/uv-dev/actions/runs/31712598963 shows that the unsupported issue_comment rule from astral-sh#21087 also breaks the unrelated Pull request labels workflow: apply on ubuntu-slim fails during repository-token exchange with HTTP 500, and label application is skipped.

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