Configure a review identity and light auto-approval

Run reviews as a dedicated identity and optionally auto-approve light PRs.

Goal: get native review verdicts under a bot or app account.

Prerequisites

  • Review enforcement enabled
  • A host App or machine user that does not open PRs

Steps

  1. Create the identity
    • On your code host: grant it the permissions your host guide lists; store the credential outside the repo.
  2. Declare it
    • In your assistant: set Review identity to app or bot-user in way-of-working.md.
    • With /pair-assistant (optional, Claude Code): shows the diff, validates and writes.
  3. Provision the login (bot-user only)
    • On your code host: set the REVIEW_IDENTITY_LOGIN repository variable.
  4. Opt in to light approval (optional)
    • In your assistant: declare the light family in ## Tag Projection and restrict who can apply the label.

Verify

  • A review is published as the identity.
  • A risk:red PR still needs a second human.

On this page