Skip to content

Ready-for-review label workflow lacks label mutation permission #809

@thepastaclaw

Description

@thepastaclaw

Problem

The Ready for Review Label workflow can fail after all CI has passed because the evaluate job tries to add the ready-for-review label with gh pr edit --add-label, but the workflow token does not have permission to mutate labels.

Example: #749

All conditions met. Adding ready-for-review label.
GraphQL: Resource not accessible by integration (addLabelsToLabelable)
Process completed with exit code 1.

Likely cause

.github/workflows/ready-for-review.yml currently declares:

permissions:
  contents: read
  pull-requests: write
  actions: read

Adding/removing labels through gh pr edit --add-label/--remove-label requires label mutation permission via issues: write, because PR labels are issue labels in GitHub's API.

Expected fix

Add issues: write to the workflow permissions, or change the label mutation path to one that has the required permissions.

This is not caused by the PR branch in #749; that PR only changes key-wallet-ffi files, and all code/test CI jobs are passing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions